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

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 2317113005: Remove StringUtils from java_core. (Closed)
Patch Set: Created 4 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: pkg/analysis_server/lib/src/services/correction/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 12b27fa20a4746400d2773274ce0544aaad57fb2..dff8dffb11b5d042b4b3bb6b4aae8672b1013b76 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -863,7 +863,7 @@ class FixProcessor {
}
// add super constructor name
sb.append('super');
- if (!StringUtils.isEmpty(constructorName)) {
+ if (!isEmpty(constructorName)) {
sb.append('.');
sb.append(constructorName);
}
@@ -1480,7 +1480,7 @@ class FixProcessor {
// don't add this library again
alreadyImportedWithPrefix.add(libraryElement.source);
// update library
- String newShowCode = 'show ${StringUtils.join(showNames, ", ")}';
+ String newShowCode = 'show ${showNames.join(', ')}';
_addReplaceEdit(
rf.rangeOffsetEnd(showCombinator), newShowCode, unitLibraryElement);
_addFix(DartFixKind.IMPORT_LIBRARY_SHOW, [libraryName]);

Powered by Google App Engine
This is Rietveld 408576698