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

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/InlineMethodOptions.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/InlineMethodOptions.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/InlineMethodOptions.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/InlineMethodOptions.java
index 8a8c46279a23299035c752ce72c539c0deb42446..f3228a6575fa437d3de4bcba8dc407c934bbba70 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/InlineMethodOptions.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/InlineMethodOptions.java
@@ -45,18 +45,18 @@ public class InlineMethodOptions extends RefactoringOptions {
* True if the method being inlined should be removed. It is an error if this field is true and
* inlineAll is false.
*/
- private final Boolean deleteSource;
+ private final boolean deleteSource;
/**
* True if all invocations of the method should be inlined, or false if only the invocation site
* used to create this refactoring should be inlined.
*/
- private final Boolean inlineAll;
+ private final boolean inlineAll;
/**
* Constructor for {@link InlineMethodOptions}.
*/
- public InlineMethodOptions(Boolean deleteSource, Boolean inlineAll) {
+ public InlineMethodOptions(boolean deleteSource, boolean inlineAll) {
this.deleteSource = deleteSource;
this.inlineAll = inlineAll;
}
@@ -66,15 +66,15 @@ public class InlineMethodOptions extends RefactoringOptions {
if (obj instanceof InlineMethodOptions) {
InlineMethodOptions other = (InlineMethodOptions) obj;
return
- ObjectUtilities.equals(other.deleteSource, deleteSource) &&
- ObjectUtilities.equals(other.inlineAll, inlineAll);
+ other.deleteSource == deleteSource &&
+ other.inlineAll == inlineAll;
}
return false;
}
public static InlineMethodOptions fromJson(JsonObject jsonObject) {
- Boolean deleteSource = jsonObject.get("deleteSource").getAsBoolean();
- Boolean inlineAll = jsonObject.get("inlineAll").getAsBoolean();
+ boolean deleteSource = jsonObject.get("deleteSource").getAsBoolean();
+ boolean inlineAll = jsonObject.get("inlineAll").getAsBoolean();
return new InlineMethodOptions(deleteSource, inlineAll);
}
@@ -94,7 +94,7 @@ public class InlineMethodOptions extends RefactoringOptions {
* True if the method being inlined should be removed. It is an error if this field is true and
* inlineAll is false.
*/
- public Boolean deleteSource() {
+ public boolean deleteSource() {
return deleteSource;
}
@@ -102,7 +102,7 @@ public class InlineMethodOptions extends RefactoringOptions {
* True if all invocations of the method should be inlined, or false if only the invocation site
* used to create this refactoring should be inlined.
*/
- public Boolean inlineAll() {
+ public boolean inlineAll() {
return inlineAll;
}

Powered by Google App Engine
This is Rietveld 408576698