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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.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/LinkedEditGroup.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
index 3024f467b27634ba46e7c6f5e23a53b0f5870b62..80328a51410af66622aa55719640cff7ef052570 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/LinkedEditGroup.java
@@ -55,7 +55,7 @@ public class LinkedEditGroup {
/**
* The length of the regions that should be edited simultaneously.
*/
- private final Integer length;
+ private final int length;
/**
* Pre-computed suggestions for what every region might want to be changed to.
@@ -65,7 +65,7 @@ public class LinkedEditGroup {
/**
* Constructor for {@link LinkedEditGroup}.
*/
- public LinkedEditGroup(List<Position> positions, Integer length, List<LinkedEditSuggestion> suggestions) {
+ public LinkedEditGroup(List<Position> positions, int length, List<LinkedEditSuggestion> suggestions) {
this.positions = positions;
this.length = length;
this.suggestions = suggestions;
@@ -85,7 +85,7 @@ public class LinkedEditGroup {
public static LinkedEditGroup fromJson(JsonObject jsonObject) {
List<Position> positions = Position.fromJsonArray(jsonObject.get("positions").getAsJsonArray());
- Integer length = jsonObject.get("length").getAsInt();
+ int length = jsonObject.get("length").getAsInt();
List<LinkedEditSuggestion> suggestions = LinkedEditSuggestion.fromJsonArray(jsonObject.get("suggestions").getAsJsonArray());
return new LinkedEditGroup(positions, length, suggestions);
}
@@ -105,7 +105,7 @@ public class LinkedEditGroup {
/**
* The length of the regions that should be edited simultaneously.
*/
- public Integer getLength() {
+ public int getLength() {
return length;
}

Powered by Google App Engine
This is Rietveld 408576698