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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/HighlightRegion.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/HighlightRegion.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/HighlightRegion.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/HighlightRegion.java
index 8e738a69dfb19da476212d8ccfc549fdae69839a..9a5d9b2e9a396014b64fbc233fa6c7ee6b9b1330 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/HighlightRegion.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/HighlightRegion.java
@@ -51,17 +51,17 @@ public class HighlightRegion {
/**
* The offset of the region to be highlighted.
*/
- private final Integer offset;
+ private final int offset;
/**
* The length of the region to be highlighted.
*/
- private final Integer length;
+ private final int length;
/**
* Constructor for {@link HighlightRegion}.
*/
- public HighlightRegion(String type, Integer offset, Integer length) {
+ public HighlightRegion(String type, int offset, int length) {
this.type = type;
this.offset = offset;
this.length = length;
@@ -85,8 +85,8 @@ public class HighlightRegion {
public static HighlightRegion fromJson(JsonObject jsonObject) {
String type = jsonObject.get("type").getAsString();
- Integer offset = jsonObject.get("offset").getAsInt();
- Integer length = jsonObject.get("length").getAsInt();
+ int offset = jsonObject.get("offset").getAsInt();
+ int length = jsonObject.get("length").getAsInt();
return new HighlightRegion(type, offset, length);
}
@@ -105,14 +105,14 @@ public class HighlightRegion {
/**
* The length of the region to be highlighted.
*/
- public Integer getLength() {
+ public int getLength() {
return length;
}
/**
* The offset of the region to be highlighted.
*/
- public Integer getOffset() {
+ public int getOffset() {
return offset;
}

Powered by Google App Engine
This is Rietveld 408576698