From cb0fd56ab8362d525abdb4cbd7796fdac68656ba Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 30 Oct 2012 13:00:00 +0100 Subject: [PATCH] Fix test data --- .../advHighlighting/NamesHighlighting.java | 67 ++++++++++--------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/NamesHighlighting.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/NamesHighlighting.java index 4c2d2b5577cb..a92aefa049be 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/NamesHighlighting.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/NamesHighlighting.java @@ -1,44 +1,46 @@ import java.io.*; // highlight on demand import as class name class a { - void method() { - method(); + void method() { + method(); - new Exception(); - new java.lang.Exception(); - } - a() { - new a(); - } + new Exception(); + new java.lang.Exception(); + } + + a() { + new a(); + } - /** - * @see itf#method(double) - */ + /** + * @see itf#method(double) + */ static void f() { - Integer.parseInt(""); - java.lang.Integer.parseInt(""); - f(); - } + Integer.parseInt(""); + java.lang.Integer.parseInt(""); + f(); + } - interface itf{ - int CONST = 0; - /** . + interface itf { + int CONST = 0; + + /** * @param d Important param */ - void method(double d); - } - void ff(Runnable r) { - ff( - new java.lang.Runnable() - { + void method(double d); + } + + void ff(Runnable r) { + ff( + new java.lang.Runnable() { public void run() {} int instance = 0; } - ); + ); - int i = java.lang.Integer.MIN_VALUE; - int j = itf.CONST; - } + int i = java.lang.Integer.MIN_VALUE; + int j = itf.CONST; + } } class NoCtrClass { @@ -46,11 +48,12 @@ class NoCtrClass { // default constructor call looks like class new NoCtrClass(); } - void ff(int param) { - int i = 1; - i ++; - param = 0; + void ff(int param) { + int i = 1; + i ++; + + param = 0; } }