mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
not only static constants may be inlined by compiler: IDEA-115878 Constants search should work for final fields
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
Cleaning output files:
|
||||
out/production/IntNonStaticConstantChange/Server.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Server.java
|
||||
End of files
|
||||
Cleaning output files:
|
||||
out/production/IntNonStaticConstantChange/Client.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Client.java
|
||||
End of files
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Server {
|
||||
final int var = 500;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class Client {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new Server().var);
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Server {
|
||||
final int var = 100;
|
||||
}
|
||||
Reference in New Issue
Block a user