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

Unified Diff: pkg/analyzer_plugin/lib/plugin/plugin.dart

Issue 2685613002: Use toList to copy lists and clean up errors and warnings (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/result_merger.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/plugin/plugin.dart
diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart
index 3b2310cc03397fd25ecae51f439cba53c427906c..348cb9b56a689c51eaff2bccfba2cf70f411e31a 100644
--- a/pkg/analyzer_plugin/lib/plugin/plugin.dart
+++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart
@@ -27,11 +27,6 @@ import 'package:pub_semver/pub_semver.dart';
*/
abstract class ServerPlugin {
/**
- * A gigabyte.
- */
- static const int G = 1024 * 1024 * 1024;
-
- /**
* A megabyte.
*/
static const int M = 1024 * 1024;
@@ -270,7 +265,7 @@ abstract class ServerPlugin {
PLUGIN_REQUEST_VERSION_CHECK_VERSION, 'plugin.versionCheck');
Version serverVersion = new Version.parse(versionString);
_byteStore =
- new MemoryCachingByteStore(new FileByteStore(byteStorePath, G), 64 * M);
+ new MemoryCachingByteStore(new FileByteStore(byteStorePath), 64 * M);
return new PluginVersionCheckResult(
isCompatibleWith(serverVersion), name, version, fileGlobsToAnalyze,
contactInfo: contactInfo);
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/result_merger.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698