| Index: pkg/analysis_server/tool/spec/codegen_java_types.dart
|
| diff --git a/pkg/analysis_server/tool/spec/codegen_java_types.dart b/pkg/analysis_server/tool/spec/codegen_java_types.dart
|
| index 646e5ffe760cbf751aa4da57e69e7c8ac304bc52..e7d289e59a1212a45fec445d9787c2ed19c296fa 100644
|
| --- a/pkg/analysis_server/tool/spec/codegen_java_types.dart
|
| +++ b/pkg/analysis_server/tool/spec/codegen_java_types.dart
|
| @@ -672,11 +672,11 @@ class CodegenJavaType extends CodegenJavaVisitor {
|
| // contains(int x)
|
| //
|
| if (className == 'Occurrences') {
|
| - publicMethod('contains', () {
|
| - writeln('public boolean contains(int x) {');
|
| + publicMethod('containsInclusive', () {
|
| + writeln('public boolean containsInclusive(int x) {');
|
| indent(() {
|
| writeln('for (int offset : offsets) {');
|
| - writeln(' if (offset <= x && x < offset + length) {');
|
| + writeln(' if (offset <= x && x <= offset + length) {');
|
| writeln(' return true;');
|
| writeln(' }');
|
| writeln('}');
|
|
|