Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java

Issue 538253002: Use primitive int/boolean where possible in the Java client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
index 6c9888898f1c721cda49369e2816bae680c79d26..ab913d84279523afdf16d2fc8a3ccc91898b3d3e 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/NavigationRegion.java
@@ -46,12 +46,12 @@ public class NavigationRegion {
/**
* The offset of the region from which the user can navigate.
*/
- private final Integer offset;
+ private final int offset;
/**
* The length of the region from which the user can navigate.
*/
- private final Integer length;
+ private final int length;
/**
* The elements to which the given region is bound. By opening the declaration of the elements,
@@ -62,7 +62,7 @@ public class NavigationRegion {
/**
* Constructor for {@link NavigationRegion}.
*/
- public NavigationRegion(Integer offset, Integer length, List<Element> targets) {
+ public NavigationRegion(int offset, int length, List<Element> targets) {
this.offset = offset;
this.length = length;
this.targets = targets;
@@ -85,8 +85,8 @@ public class NavigationRegion {
}
public static NavigationRegion fromJson(JsonObject jsonObject) {
- Integer offset = jsonObject.get("offset").getAsInt();
- Integer length = jsonObject.get("length").getAsInt();
+ int offset = jsonObject.get("offset").getAsInt();
+ int length = jsonObject.get("length").getAsInt();
List<Element> targets = Element.fromJsonArray(jsonObject.get("targets").getAsJsonArray());
return new NavigationRegion(offset, length, targets);
}
@@ -106,14 +106,14 @@ public class NavigationRegion {
/**
* The length of the region from which the user can navigate.
*/
- public Integer getLength() {
+ public int getLength() {
return length;
}
/**
* The offset of the region from which the user can navigate.
*/
- public Integer getOffset() {
+ public int getOffset() {
return offset;
}

Powered by Google App Engine
This is Rietveld 408576698