| Index: pkg/analyzer/lib/src/generated/source.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
|
| index b2967477f23c6128ef0c902d1a91e946afcfdd7a..3b3d79ba61b8e8d8cf98a0e92536de17a4114163 100644
|
| --- a/pkg/analyzer/lib/src/generated/source.dart
|
| +++ b/pkg/analyzer/lib/src/generated/source.dart
|
| @@ -71,13 +71,17 @@ class ContentCache {
|
| return _contentMap.remove(source);
|
| } else {
|
| int newStamp = JavaSystem.currentTimeMillis();
|
| - int oldStamp = javaMapPut(_stampMap, source, newStamp);
|
| - // Occasionally, if this method is called in rapid succession, the timestamps are equal.
|
| - // Guard against this by artificially incrementing the new timestamp
|
| + int oldStamp = _stampMap[source];
|
| + _stampMap[source] = newStamp;
|
| + // Occasionally, if this method is called in rapid succession, the
|
| + // timestamps are equal. Guard against this by artificially incrementing
|
| + // the new timestamp.
|
| if (newStamp == oldStamp) {
|
| _stampMap[source] = newStamp + 1;
|
| }
|
| - return javaMapPut(_contentMap, source, contents);
|
| + String oldContent =_contentMap[source];
|
| + _contentMap[source] = contents;
|
| + return oldContent;
|
| }
|
| }
|
| }
|
|
|