-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
217092b
commit 7353bbe
Showing
4 changed files
with
67 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,20 @@ | |
|
||
public class SceneUpdate { | ||
|
||
public String path; | ||
public String value; | ||
|
||
public SceneUpdate() { this("", ""); } | ||
private String componentPath; | ||
private String componentValue; | ||
|
||
/** | ||
* Add a point feature to this collection. | ||
* @param path Series of yaml keys separated by a ".". Represents the scene path to be updated | ||
* @param value A yaml string which will update the value at the specified path | ||
*/ | ||
public SceneUpdate(String path, String value) { | ||
set(path, value); | ||
this.componentPath = path; | ||
this.componentValue = value; | ||
} | ||
|
||
public SceneUpdate set(String p, String v) { | ||
path = p; | ||
value = v; | ||
return this; | ||
} | ||
public String path() { return componentPath; } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matteblair
Member
|
||
public String value() { return componentValue; } | ||
|
||
} |
Nullity seems to be checked in the JNI code, what about calling it with
NULL
directly? Not sure what an allocated array of size 0 means in Java.