summaryrefslogtreecommitdiff
path: root/plugins/java-i18n/testData/inspections/duplicateStringLiteral/propertyKey/src/Test.java
blob: 48560e51fc28bbb0e304aa0ede354f1959d99775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import org.jetbrains.annotations.*;

@SuppressWarnings({"HardCodedStringLiteral"})
class Test {
  @SuppressWarnings({"HardCodedStringLiteral"})
  String s = "abcdefghhijklmnop";

  @SuppressWarnings({"HardCodedStringLiteral"})
  void f(@PropertyKey(resourceBundle = "xxx.yyy") String key) {
     String s = "abcdefghhijklmnop";
     f("abcdefghhijklmnop"); //no way
  }
}