Skip to content

Commit

Permalink
Final constant strings should be static to save memory (showed up in …
Browse files Browse the repository at this point in the history
…YourKit profiling). Also private if not used outside the class.

[git-p4: depot-paths = "//open/mondrian/": change = 2969]
  • Loading branch information
ebb committed Dec 17, 2004
1 parent f0dbfdc commit 67d33ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsrc/main/mondrian/olap/fun/FunctionTest.java
Expand Up @@ -39,7 +39,7 @@ public class FunctionTest extends FoodMartTestCase {
"[Time].[1997].[Q4]";
private static final String year1997 = "[Time].[1997]";

final String hierarchized1997 = year1997 + nl +
private static final String hierarchized1997 = year1997 + nl +
"[Time].[1997].[Q1]" + nl +
"[Time].[1997].[Q1].[1]" + nl +
"[Time].[1997].[Q1].[2]" + nl +
Expand Down

0 comments on commit 67d33ce

Please sign in to comment.