Searched defs:instance (Results 1 - 16 of 16) sorted by relevance

/opengrok/src/org/opensolaris/opengrok/util/
H A DInterner.java48 * @param <T> the type of the objects being interned by the instance
57 * Intern an object and return a canonical instance of it. For two objects
68 * @param instance the object to intern
69 * @return a canonical representation of {@code instance}
71 public T intern(T instance) { argument
72 if (instance == null) {
76 T interned = map.get(instance);
79 interned = instance;
/opengrok/test/org/opensolaris/opengrok/history/
H A DBazaarHistoryParserTest.java42 private BazaarHistoryParser instance; field in class:BazaarHistoryParserTest
60 instance = new BazaarHistoryParser(new BazaarRepository());
65 instance = null;
73 History result = instance.parse("");
125 History result = instance.parse(output);
179 History result = instance.parse(output.toString());
H A DCVSHistoryParserTest.java38 CVSHistoryParser instance; field in class:CVSHistoryParserTest
53 instance = new CVSHistoryParser();
58 instance = null;
66 History result = instance.parse("");
117 History result = instance.parse(output);
H A DClearCaseHistoryParserTest.java39 private ClearCaseHistoryParser instance; field in class:ClearCaseHistoryParserTest
54 instance = new ClearCaseHistoryParser();
59 instance = null;
109 History result = instance.parse(output);
173 History result = instance.parse(output);
H A DRazorHistoryParserTest.java44 RazorHistoryParser instance; field in class:RazorHistoryParserTest
59 instance = new RazorHistoryParser();
64 instance = null;
73 History result = instance.parseContents(new BufferedReader(new StringReader(output)));
111 History result = instance.parseContents(new BufferedReader(new StringReader(output)));
H A DSSCMHistoryParserTest.java43 SSCMHistoryParser instance; field in class:SSCMHistoryParserTest
58 instance = new SSCMHistoryParser(new SSCMRepository());
63 instance = null;
73 History result = instance.parse("");
117 History result = instance.parse(output);
H A DBazaarRepositoryTest.java49 BazaarRepository instance; field in class:BazaarRepositoryTest
64 instance = new BazaarRepository();
69 instance = null;
90 Annotation result = instance.parseAnnotation(input, fileName);
112 boolean result = instance.fileHasAnnotation(null);
121 boolean result = instance.fileHasHistory(null);
H A DCVSRepositoryTest.java49 CVSRepository instance; field in class:CVSRepositoryTest
64 instance = new CVSRepository();
69 instance = null;
77 boolean result = instance.fileHasAnnotation(null);
86 boolean result = instance.fileHasHistory(null);
107 Annotation result = instance.parseAnnotation(input, fileName);
H A DGitRepositoryTest.java49 GitRepository instance; field in class:GitRepositoryTest
64 instance = new GitRepository();
69 instance = null;
89 Annotation result = instance.parseAnnotation(input, fileName);
111 boolean result = instance.fileHasAnnotation(null);
120 boolean result = instance.fileHasHistory(null);
H A DGitHistoryParserTest.java44 GitHistoryParser instance; field in class:GitHistoryParserTest
62 instance = new GitHistoryParser();
67 instance = null;
75 History result = instance.parse("");
130 History result = instance.parse(output);
196 History result = instance.parse(output);
283 History result = instance.parse(output);
334 History result = instance.parse(output);
H A DSubversionHistoryParserTest.java42 private SubversionHistoryParser instance; field in class:SubversionHistoryParserTest
57 instance = new SubversionHistoryParser();
62 instance = null;
70 History result = instance.parse("");
135 History result = instance.parse(output);
197 History result = instance.parse(output);
H A DHistoryEntryTest.java44 private HistoryEntry instance; field in class:HistoryEntryTest
63 instance = new HistoryEntry(historyRevision, historyDate,
76 assertTrue(instance.getLine().contains(historyRevision));
77 assertTrue(instance.getLine().contains(historyAuthor));
85 instance.dump();
86 instance.setActive(false);
87 instance.addFile("testFile1.txt");
88 instance.addFile("testFile2.txt");
89 instance.addChangeRequest("CR1");
90 instance
[all...]
/opengrok/src/org/opensolaris/opengrok/authorization/
H A DAuthorizationFramework.java59 private volatile static AuthorizationFramework instance = new AuthorizationFramework(); field in class:AuthorizationFramework
65 * @return an instance of AuthorizationFramework
70 return instance;
288 // trashing out the old instance of the loaded enables us
/opengrok/test/org/opensolaris/opengrok/web/
H A DProjectHelperTestBase.java56 protected AuthorizationFramework instance; field in class:ProjectHelperTestBase
292 instance = getInstance();
/opengrok/src/org/opensolaris/opengrok/history/
H A DHistoryGuru.java59 * The one and only instance of the HistoryGuru
61 private static final HistoryGuru instance = new HistoryGuru(); field in class:HistoryGuru
73 * Creates a new instance of HistoryGuru, and try to set the default source
99 * Get the one and only instance of the HistoryGuru
101 * @return the one and only HistoryGuru instance
104 return instance;
120 * @return a free form text string describing the history cache instance
/opengrok/src/org/opensolaris/opengrok/configuration/
H A DRuntimeEnvironment.java101 private static final RuntimeEnvironment instance = new RuntimeEnvironment(); field in class:RuntimeEnvironment
209 * Get the one and only instance of the RuntimeEnvironment
211 * @return the one and only instance of the RuntimeEnvironment
214 return instance;
218 * Creates a new instance of RuntimeEnvironment. Private to ensure a
434 * @return this instance

Completed in 132 milliseconds