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

/opengrok-jel/src/org/opensolaris/opengrok/util/
H A DInterner.java49 * @param <T> the type of the objects being interned by the instance
58 * Intern an object and return a canonical instance of it. For two objects
69 * @param instance the object to intern
70 * @return a canonical representation of {@code instance}
72 public T intern(T instance) { argument
73 if (instance == null) {
77 T interned = map.get(instance);
80 interned = instance;
/opengrok-jel/test/org/opensolaris/opengrok/history/
H A DBazaarHistoryParserTest.java44 private BazaarHistoryParser instance; field in class:BazaarHistoryParserTest
52 instance = new BazaarHistoryParser(new BazaarRepository());
58 instance = null;
67 History result = instance.parse("");
121 History result = instance.parse(output);
175 History result = instance.parse(output.toString());
H A DBazaarRepositoryTest.java41 BazaarRepository instance; field in class:BazaarRepositoryTest
56 instance = new BazaarRepository();
61 instance = null;
81 Annotation result = instance.parseAnnotation(input, fileName);
100 boolean result = instance.fileHasAnnotation(null);
109 boolean result = instance.fileHasHistory(null);
H A DCVSHistoryParserTest.java39 CVSHistoryParser instance; field in class:CVSHistoryParserTest
54 instance = new CVSHistoryParser();
59 instance = null;
67 History result = instance.parse("");
111 History result = instance.parse(output);
H A DCVSRepositoryTest.java41 CVSRepository instance; field in class:CVSRepositoryTest
56 instance = new CVSRepository();
61 instance = null;
69 boolean result = instance.fileHasAnnotation(null);
78 boolean result = instance.fileHasHistory(null);
98 Annotation result = instance.parseAnnotation(input, fileName);
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 DGitHistoryParserTest.java40 GitHistoryParser instance; field in class:GitHistoryParserTest
58 instance = new GitHistoryParser();
63 instance = null;
71 History result = instance.parse("");
126 History result = instance.parse(output);
189 History result = instance.parse(output);
274 History result = instance.parse(output);
H A DGitRepositoryTest.java43 GitRepository instance; field in class:GitRepositoryTest
48 instance = new GitRepository();
54 instance = null;
74 Method method = instance.getClass()
77 Annotation result = (Annotation) method.invoke(instance, input, fileName);
96 boolean result = instance.fileHasAnnotation(null);
105 boolean result = instance.fileHasHistory(null);
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 DSubversionHistoryParserTest.java39 private SubversionHistoryParser instance; field in class:SubversionHistoryParserTest
54 instance = new SubversionHistoryParser();
59 instance = null;
67 History result = instance.parse("");
132 History result = instance.parse(output);
H A DHistoryEntryTest.java44 private HistoryEntry instance; field in class:HistoryEntryTest
63 instance = new HistoryEntry(historyRevision, null, historyDate, historyAuthor, historyMessage, true);
75 assertTrue(instance.getLine().contains(historyRevision));
76 assertTrue(instance.getLine().contains(historyAuthor));
84 instance.dump();
85 instance.setActive(false);
86 instance.addFile("testFile1.txt");
87 instance.addFile("testFile2.txt");
88 instance.addChangeRequest("CR1");
89 instance
[all...]
/opengrok-jel/src/org/opensolaris/opengrok/configuration/
H A DRuntimeEnvironment.java55 private static RuntimeEnvironment instance = new RuntimeEnvironment(); field in class:RuntimeEnvironment
59 * Get the one and only instance of the RuntimeEnvironment
60 * @return the one and only instance of the RuntimeEnvironment
63 return instance;
67 * Creates a new instance of RuntimeEnvironment. Private to ensure a
86 instance = new RuntimeEnvironment();
87 return instance;
116 * @return this instance
119 instance.threadConfig.set(instance
[all...]
/opengrok-jel/src/org/opensolaris/opengrok/history/
H A DHistoryGuru.java56 /** The one and only instance of the HistoryGuru */
57 private static HistoryGuru instance = new HistoryGuru(); field in class:HistoryGuru
67 * Creates a new instance of HistoryGuru, and try to set the default
94 * Get the one and only instance of the HistoryGuru
95 * @return the one and only HistoryGuru instance
98 return instance;
113 * @return a free form text string describing the history cache instance
758 * Get the with this instance registered repository for the given file.

Completed in 24 milliseconds