Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
254,100
void (int timeout, @NotNull TimeUnit unit) { long start = System.currentTimeMillis(); while (System.currentTimeMillis() < start + unit.toMillis(timeout)) { Thread jdiThread = ContainerUtil.find(ThreadLeakTracker.getThreads().values(), thread -> { ThreadGroup group = thread.getThreadGroup(); return group != null && grou...
awaitJDIThreadsTermination
254,101
Tree () { return getPopup().getTree(); }
getTree
254,102
TreeSpeedSearch () { return getPopup().getSpeedSearch(); }
getSpeedSearch
254,103
FileStructurePopup () { if (myPopup == null || myFile != myFixture.getFile()) { if (myPopup != null) { Disposer.dispose(myPopup); myPopup = null; } myFile = myFixture.getFile(); myPopup = ViewStructureAction.createPopup(myFixture.getProject(), TextEditorProvider.getInstance().getTextEditor(myFixture.getEditor())); asse...
getPopup
254,104
void () { myPopup = null; myFile = null; }
dispose
254,105
VirtualFile (@NotNull Project project, @Nullable Module module, String rootPath, @NotNull Collection<? super Path> filesToDelete, boolean addProjectRoots) { Path dir = HeavyTestHelper.createTempDirectoryForTempDirTestFixture(null, "unitTest"); filesToDelete.add(dir); VirtualFile vDir = HeavyTestHelper.createTestProject...
createTestProjectStructure
254,106
void (@NotNull Module module, Sdk jdk) { ModuleRootModificationUtil.updateModel(module, model -> { model.clear(); if (jdk != null && ApplicationManager.getApplication().isUnitTestMode()) { WriteAction.runAndWait(() -> ProjectJdkTable.getInstance().addJdk(jdk, module.getProject())); } model.setSdk(jdk); }); }
removeAllRoots
254,107
SourceFolder (@NotNull Module module, @NotNull VirtualFile vDir) { return addSourceContentToRoots(module, vDir, false); }
addSourceContentToRoots
254,108
SourceFolder (@NotNull Module module, @NotNull VirtualFile vDir, boolean testSource) { Ref<SourceFolder> result = Ref.create(); ModuleRootModificationUtil.updateModel(module, model -> result.set(model.addContentEntry(vDir).addSourceFolder(vDir, testSource))); return result.get(); }
addSourceContentToRoots
254,109
SourceFolder (@NotNull Module module, @NotNull VirtualFile vDir, boolean testResource) { Ref<SourceFolder> result = Ref.create(); ModuleRootModificationUtil.updateModel(module, model -> result.set(model.addContentEntry(vDir).addSourceFolder(vDir, testResource? JavaResourceRootType.TEST_RESOURCE: JavaResourceRootType.RE...
addResourceContentToRoots
254,110
SourceFolder (@NotNull Module module, @NotNull VirtualFile vDir) { return addSourceRoot(module, vDir, false); }
addSourceRoot
254,111
SourceFolder (@NotNull Module module, @NotNull VirtualFile vDir, boolean isTestSource) { return addSourceRoot(module, vDir, isTestSource ? JavaSourceRootType.TEST_SOURCE : JavaSourceRootType.SOURCE); }
addSourceRoot
254,112
ContentEntry (@NotNull ModuleRootModel rootModel, @NotNull VirtualFile file) { return ContainerUtil.find(rootModel.getContentEntries(), object -> { VirtualFile entryRoot = object.getFile(); return entryRoot != null && VfsUtilCore.isAncestor(entryRoot, file, false); }); }
findContentEntry
254,113
ContentEntry (@NotNull Module module, @NotNull VirtualFile vDir) { ModuleRootModificationUtil.updateModel(module, model -> model.addContentEntry(vDir)); for (ContentEntry entry : ModuleRootManager.getInstance(module).getContentEntries()) { if (Comparing.equal(entry.getFile(), vDir)) { return entry; } } return null; }
addContentRoot
254,114
void (@NotNull Module module, @NotNull VirtualFile dir) { ModuleRootModificationUtil.updateModel(module, model -> ApplicationManager.getApplication().runReadAction(() -> { findContentEntryWithAssertion(model, dir).addExcludeFolder(dir); })); }
addExcludedRoot
254,115
ContentEntry (@NotNull ModifiableRootModel model, @NotNull VirtualFile dir) { return assertEntryFound(model, dir, findContentEntry(model, dir)); }
findContentEntryWithAssertion
254,116
ContentEntry (@NotNull ModifiableRootModel model, @NotNull VirtualFile dir, ContentEntry entry) { if (entry == null) { throw new RuntimeException(dir + " is not under content roots: " + Arrays.toString(model.getContentRoots())); } return entry; }
assertEntryFound
254,117
void (@NotNull Module module, @NotNull VirtualFile contentRoot) { ModuleRootModificationUtil.updateModel(module, model -> { ContentEntry entry = ContainerUtil.find(model.getContentEntries(), object -> contentRoot.equals(object.getFile())); model.removeContentEntry(assertEntryFound(model, contentRoot, entry)); }); }
removeContentEntry
254,118
void (@NotNull Module module, @NotNull VirtualFile root) { ModuleRootModificationUtil.updateModel(module, model -> { ContentEntry entry = findContentEntryWithAssertion(model, root); for (SourceFolder sourceFolder : entry.getSourceFolders()) { if (root.equals(sourceFolder.getFile())) { entry.removeSourceFolder(sourceFol...
removeSourceRoot
254,119
void (@NotNull Module module, @NotNull VirtualFile root) { ModuleRootModificationUtil.updateModel(module, model -> { ContentEntry entry = findContentEntryWithAssertion(model, root); entry.removeExcludeFolder(root.getUrl()); }); }
removeExcludedRoot
254,120
void (@NotNull PsiElement element) { StringBuilder err = null; int s = 0; String text = element.getText(); for (PsiErrorElement error : SyntaxTraverser.psiTraverser().withRoot(element).filter(PsiErrorElement.class)) { if (err == null) err = new StringBuilder(); TextRange r = error.getTextRange(); if (r.getStartOffset()...
checkErrorElements
254,121
void (@NotNull PsiFile file) { compareFromAllRoots(file, f -> DebugUtil.psiTreeToString(f, true)); }
checkFileStructure
254,122
void (@NotNull PsiFile file, @NotNull Function<? super PsiFile, String> fun) { PsiFile dummyFile = createDummyCopy(file); String psiTree = StringUtil.join(file.getViewProvider().getAllFiles(), fun, "\n"); String reparsedTree = StringUtil.join(dummyFile.getViewProvider().getAllFiles(), fun, "\n"); assertPsiTextTreeConsi...
compareFromAllRoots
254,123
void (@NotNull String psiTree, @NotNull String reparsedTree) { if (!psiTree.equals(reparsedTree)) { String[] psiLines = StringUtil.splitByLinesDontTrim(psiTree); String[] reparsedLines = StringUtil.splitByLinesDontTrim(reparsedTree); for (int i = 0; ; i++) { if (i >= psiLines.length || i >= reparsedLines.length || !psi...
assertPsiTextTreeConsistency
254,124
PsiFile (@NotNull PsiFile file) { LightVirtualFile copy = new LightVirtualFile(file.getName(), file.getText()); copy.setOriginalFile(file.getViewProvider().getVirtualFile()); PsiFile dummyCopy = Objects.requireNonNull(file.getManager().findFile(copy)); if (dummyCopy instanceof PsiFileImpl) { ((PsiFileImpl)dummyCopy).se...
createDummyCopy
254,125
void (@NotNull PsiFile file) { compareFromAllRoots(file, f -> DebugUtil.psiToStringIgnoringNonCode(f)); }
checkPsiMatchesTextIgnoringNonCode
254,126
void (@NotNull Disposable parentDisposable) { Registry.get("ide.check.structural.psi.text.consistency.in.tests").setValue(false, parentDisposable); }
disablePsiTextConsistencyChecks
254,127
LibraryBuilder (String name) { return new LibraryBuilder(name); }
newLibrary
254,128
void (@NotNull Module module, @NotNull String libPath) { File file = new File(libPath); String libName = file.getName(); addLibrary(module, libName, file.getParent(), libName); }
addLibrary
254,129
void (@NotNull Module module, String libName, @NotNull String libPath, String @NotNull ... jarArr) { ModuleRootModificationUtil.updateModel(module, model -> addLibrary(model, libName, libPath, jarArr)); }
addLibrary
254,130
void (@NotNull Disposable parent, @NotNull Module module, String libName, @NotNull String libPath, String @NotNull ... jarArr) { Ref<Library> ref = new Ref<>(); ModuleRootModificationUtil.updateModel(module, model -> ref.set(addLibrary(model, libName, libPath, jarArr))); Disposer.register(parent, () -> removeLibrary(mo...
addLibrary
254,131
void (@NotNull Module module, @NotNull Library library) { ModuleRootModificationUtil.updateModel(module, model -> { LibraryOrderEntry entry = model.findLibraryOrderEntry(library); if (entry != null) { model.removeOrderEntry(entry); } }); WriteCommandAction.runWriteCommandAction(null, ()-> { LibraryTable table = Library...
removeLibrary
254,132
void (@NotNull Module module, String libName, @NotNull List<String> classesRootPaths) { List<VirtualFile> roots = getLibraryRoots(classesRootPaths); addProjectLibrary(module, libName, roots, Collections.emptyList()); }
addProjectLibrary
254,133
List<VirtualFile> (@NotNull List<String> classesRootPaths) { return ContainerUtil.map(classesRootPaths, path -> VirtualFileManager.getInstance().refreshAndFindFileByUrl(VfsUtil.getUrlForLibraryRoot(new File(path)))); }
getLibraryRoots
254,134
void (@NotNull ModifiableRootModel model, String libName, @NotNull List<String> classesRootPaths) { List<VirtualFile> roots = getLibraryRoots(classesRootPaths); addProjectLibrary(model, libName, roots, Collections.emptyList(), Collections.emptyList(), Collections.emptyList()); }
addProjectLibrary
254,135
void (@NotNull Module module, String libName, VirtualFile @NotNull ... classesRoots) { addProjectLibrary(module, libName, Arrays.asList(classesRoots), Collections.emptyList()); }
addProjectLibrary
254,136
Library (@NotNull Module module, String libName, @NotNull List<? extends VirtualFile> classesRoots, @NotNull List<? extends VirtualFile> sourceRoots) { Ref<Library> result = Ref.create(); ModuleRootModificationUtil.updateModel( module, model -> result.set(addProjectLibrary(model, libName, classesRoots, sourceRoots, Col...
addProjectLibrary
254,137
Library (@NotNull ModifiableRootModel model, String libName, @NotNull List<? extends VirtualFile> classesRoots, @NotNull List<? extends VirtualFile> sourceRoots, @NotNull List<? extends VirtualFile> javaDocs, @NotNull List<? extends VirtualFile> externalAnnotationsRoots) { LibraryTable libraryTable = LibraryTablesRegis...
addProjectLibrary
254,138
Library (@NotNull ModifiableRootModel model, String libName, @NotNull String libPath, String @NotNull ... jarArr) { List<VirtualFile> classesRoots = new ArrayList<>(); for (String jar : jarArr) { if (!libPath.endsWith("/") && !jar.startsWith("/")) { jar = "/" + jar; } String path = libPath + jar; VirtualFile root; if (...
addLibrary
254,139
void (@NotNull Module module, String libName, @NotNull String libDir, String @NotNull [] classRoots, String @NotNull [] sourceRoots) { String proto = (classRoots.length > 0 ? classRoots[0] : sourceRoots[0]).endsWith(".jar!/") ? JarFileSystem.PROTOCOL : LocalFileSystem.PROTOCOL; String parentUrl = VirtualFileManager.con...
addLibrary
254,140
Module (@NotNull Project project, @NotNull ModuleType type, @NotNull String name, @NotNull VirtualFile root) { return WriteCommandAction.writeCommandAction(project).compute(() -> { String moduleName; ModifiableModuleModel moduleModel = ModuleManager.getInstance(project).getModifiableModel(); try { moduleName = moduleMo...
addModule
254,141
void (@NotNull Module module, @NotNull String url, boolean forTests) { ModuleRootModificationUtil.updateModel(module, model -> { CompilerModuleExtension extension = model.getModuleExtension(CompilerModuleExtension.class); extension.inheritCompilerOutputPath(false); if (forTests) { extension.setCompilerOutputPathForTest...
setCompilerOutputPath
254,142
void (@NotNull Module module, boolean exclude) { ModuleRootModificationUtil.updateModel(module, model -> model.getModuleExtension(CompilerModuleExtension.class).setExcludeOutput(exclude)); }
setExcludeCompileOutput
254,143
void (@NotNull Module module, String @NotNull ... urls) { ModuleRootModificationUtil.updateModel(module, model -> model.getModuleExtension(JavaModuleExternalPaths.class).setJavadocUrls(urls)); }
setJavadocUrls
254,144
Sdk (@NotNull Sdk sdk) { String path = FileUtil.toSystemIndependentName(PlatformTestUtil.getCommunityPath()) + "/java/jdkAnnotations"; VirtualFile root = LocalFileSystem.getInstance().findFileByPath(path); return addRootsToJdk(sdk, AnnotationOrderRootType.getInstance(), root); }
addJdkAnnotations
254,145
Sdk (@NotNull Sdk sdk, @NotNull OrderRootType rootType, VirtualFile @NotNull ... roots) { return modifyJdkRoots(sdk, sdkModificator -> { for (VirtualFile root : roots) { sdkModificator.setName(sdkModificator.getName() + "+" + root.getPath()); sdkModificator.addRoot(root, rootType); } }); }
addRootsToJdk
254,146
Sdk (@NotNull Sdk sdk, Consumer<? super SdkModificator> modifier) { Sdk clone; try { clone = (Sdk)sdk.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } SdkModificator sdkModificator = clone.getSdkModificator(); modifier.accept(sdkModificator); sdkModificator.commitChanges(); return clon...
modifyJdkRoots
254,147
void (@NotNull PsiFile file) { try { StubTextInconsistencyException.checkStubTextConsistency(file); } catch (StubTextInconsistencyException e) { compareStubTexts(e); } }
checkStubsMatchText
254,148
void (@NotNull StubTextInconsistencyException e) { assertPsiTextTreeConsistency(e.getStubsFromPsi(), e.getStubsFromText()); throw e; }
compareStubTexts
254,149
void (@NotNull PsiFile psiFile, @NotNull Consumer<? super PsiFile> checker) { checker.accept(psiFile); Document document = psiFile.getViewProvider().getDocument(); PsiDocumentManager manager = PsiDocumentManager.getInstance(psiFile.getProject()); if (document != null && manager.isUncommited(document)) { manager.commitD...
checkPsiStructureWithCommit
254,150
LibraryBuilder (@NotNull VirtualFile root) { myClassesRoots.add(root); return this; }
classesRoot
254,151
LibraryBuilder (@NotNull String rootPath) { myClassesRoots.add(VirtualFileManager.getInstance().refreshAndFindFileByUrl(VfsUtil.getUrlForLibraryRoot(new File(rootPath)))); return this; }
classesRoot
254,152
LibraryBuilder (@NotNull VirtualFile root) { mySourceRoots.add(root); return this; }
sourceRoot
254,153
LibraryBuilder (@NotNull String rootPath) { mySourceRoots.add(VirtualFileManager.getInstance().refreshAndFindFileByUrl(VfsUtil.getUrlForLibraryRoot(new File(rootPath)))); return this; }
sourceRoot
254,154
LibraryBuilder (@NotNull VirtualFile root) { myJavaDocRoots.add(root); return this; }
javaDocRoot
254,155
LibraryBuilder (@NotNull String rootPath) { myJavaDocRoots.add(VirtualFileManager.getInstance().refreshAndFindFileByUrl(VfsUtil.getUrlForLibraryRoot(new File(rootPath)))); return this; }
javaDocRoot
254,156
LibraryBuilder (@NotNull String rootPath) { myExternalAnnotationsRoots.add(VirtualFileManager.getInstance().refreshAndFindFileByUrl(VfsUtil.getUrlForLibraryRoot(new File(rootPath)))); return this; }
externalAnnotationsRoot
254,157
Library (@NotNull ModifiableRootModel model) { return addProjectLibrary(model, myName, myClassesRoots, mySourceRoots, myJavaDocRoots, myExternalAnnotationsRoots); }
addTo
254,158
Library (@NotNull Module module) { Ref<Library> result = Ref.create(); ModuleRootModificationUtil.updateModel(module, model -> result.set(addTo(model))); return result.get(); }
addTo
254,159
List<Runner> () { return l; }
getChildren
254,160
void (@NotNull Throwable e) { List<Throwable> list = mySuppressedExceptions; if (list == null) { mySuppressedExceptions = list = new SmartList<>(); } list.add(e); }
addSuppressedException
254,161
boolean () { return true; }
shouldContainTempFiles
254,162
boolean () { return false; }
isIconRequired
254,163
void () { Disposer.dispose(getTestRootDisposable()); }
disposeRootDisposable
254,164
void (@NotNull Path file) { if (myPathsToKeep == null) { myPathsToKeep = new ArrayList<>(); } myPathsToKeep.add(file.toAbsolutePath()); }
addTmpFileToKeep
254,165
boolean (@NotNull Path file) { return myPathsToKeep != null && myPathsToKeep.contains(file); }
shouldKeepTmpFile
254,166
void (@NotNull CodeStyleSettings oldCodeStyleSettings, @NotNull CodeStyleSettings currentCodeStyleSettings) { CodeInsightSettings settings = CodeInsightSettings.getInstance(); // don't use method references here to make stack trace reading easier //noinspection Convert2MethodRef new RunAll( () -> { try { checkCodeInsig...
doCheckForSettingsDamage
254,167
void (@NotNull CodeInsightSettings settings) { CodeInsightSettings clean = new CodeInsightSettings(); for (Field field : clean.getClass().getFields()) { try { ReflectionUtil.copyFieldValue(clean, settings, field); } catch (Exception ignored) { } } }
restoreCodeInsightSettingsToAvoidInducedErrors
254,168
Disposable () { Disposable disposable = myTestRootDisposable; if (disposable == null) { myTestRootDisposable = disposable = new TestDisposable(); } return disposable; }
getTestRootDisposable
254,169
boolean () { IdeaTestExecutionPolicy policy = IdeaTestExecutionPolicy.current(); if (policy != null && !policy.canRun(getClass())) { return false; } return TestFrameworkUtil.canRunTest(getClass()); }
shouldRunTest
254,170
void (int cost, @NotNull ObjectIntMap<String> costMap, @NotNull ObjectIntMap<String> countMap) { String name = getClass().getSuperclass().getName(); int storedCost = costMap.get(name); costMap.put(name, (storedCost == -1 ? 0 : storedCost) + cost); int storedCount = countMap.get(name); countMap.put(name, storedCount == ...
logPerClassCost
254,171
void () { System.out.println("Setup costs"); long totalSetup = 0; for (ObjectIntMap.Entry<String> entry : TOTAL_SETUP_COST_MILLIS.entries()) { String name = entry.getKey(); int cost = entry.getValue(); long count = TOTAL_SETUP_COUNT.get(name); System.out.printf(" %s: %d ms for %d executions%n", name, cost, count); tota...
logSetupTeardownCosts
254,172
ThrowableRunnable<Throwable> (@NotNull ThrowableRunnable<Throwable> testRunnable) { Description testDescription = Description.createTestDescription(getClass(), getName()); return () -> { boolean success = false; TestLoggerFactory.onTestStarted(); try { testRunnable.run(); success = true; } catch (AssumptionViolatedExce...
wrapTestRunnable
254,173
boolean () { IdeaTestExecutionPolicy policy = IdeaTestExecutionPolicy.current(); if (policy != null) { return policy.runInDispatchThread(); } return true; }
runInDispatchThread
254,174
String (@NotNull Iterable<?> collection) { if (!collection.iterator().hasNext()) { return "<empty>"; } StringBuilder builder = new StringBuilder(); for (Object o : collection) { if (o instanceof Set) { builder.append(new TreeSet<>((Set<?>)o)); } else { builder.append(o); } builder.append('\n'); if (builder.length() > 1...
toString
254,175
void (byte @NotNull [] actual, byte @NotNull [] expected) { assertEquals(expected.length, actual.length); for (int i = 0; i < actual.length; i++) { assertEquals("not equals at index: " + i, expected[i], actual[i]); } }
assertOrderedEquals
254,176
void (int @NotNull [] actual, int @NotNull [] expected) { if (actual.length != expected.length) { fail("Expected size: " + expected.length + "; actual: " + actual.length + "\nexpected: " + Arrays.toString(expected) + "\nactual : " + Arrays.toString(actual)); } for (int i = 0; i < actual.length; i++) { int a = actual[i]...
assertOrderedEquals
254,177
String (Object @NotNull [] collection, @NotNull String separator) { return toString(Arrays.asList(collection), separator); }
toString
254,178
String (@NotNull Collection<?> collection, @NotNull String separator) { List<String> list = ContainerUtil.sorted(ContainerUtil.map(collection, String::valueOf)); StringBuilder builder = new StringBuilder(); boolean flag = false; for (String o : list) { if (flag) { builder.append(separator); } builder.append(o); flag = ...
toString
254,179
void (Object @NotNull [] array) { assertOrderedEquals(array); }
assertEmpty
254,180
void (Collection<?> collection) { assertNotNull(collection); assertFalse(collection.isEmpty()); }
assertNotEmpty
254,181
void (@NotNull Collection<?> collection) { if (!collection.isEmpty()) { assertEmpty(toString(collection), collection); } }
assertEmpty
254,182
void (@Nullable Collection<?> collection) { if (collection == null) return; assertEmpty("", collection); }
assertNullOrEmpty
254,183
void (String s) { assertTrue(s, StringUtil.isEmpty(s)); }
assertEmpty
254,184
void (int expectedSize, Object @NotNull [] array) { if (array.length != expectedSize) { assertEquals(toString(Arrays.asList(array)), expectedSize, array.length); } }
assertSize
254,185
void (int expectedSize, @NotNull Collection<?> c) { if (c.size() != expectedSize) { assertEquals(toString(c), expectedSize, c.size()); } }
assertSize
254,186
void (@NotNull String expected, @NotNull String actual) { assertSameLines(null, expected, actual); }
assertSameLines
254,187
void (@Nullable String message, @NotNull String expected, @NotNull String actual) { String expectedText = StringUtil.convertLineSeparators(expected.trim()); String actualText = StringUtil.convertLineSeparators(actual.trim()); Assert.assertEquals(message, expectedText, actualText); }
assertSameLines
254,188
void (@NotNull File file) { assertTrue("File should exist " + file, file.exists()); }
assertExists
254,189
void (@NotNull File file) { assertFalse("File should not exist " + file, file.exists()); }
assertDoesntExist
254,190
String (boolean lowercaseFirstLetter) { return getTestName(getName(), lowercaseFirstLetter); }
getTestName
254,191
String (@Nullable String name, boolean lowercaseFirstLetter) { return name == null ? "" : PlatformTestUtil.getTestName(name, lowercaseFirstLetter); }
getTestName
254,192
String () { return getTestName(true).replaceAll("_.*", ""); }
getTestDirectoryName
254,193
void (@NotNull String filePath, @NotNull String actualText) { assertSameLinesWithFile(filePath, actualText, true); }
assertSameLinesWithFile
254,194
void (@NotNull String filePath, @NotNull String actualText, @NotNull Supplier<String> messageProducer) { assertSameLinesWithFile(filePath, actualText, true, messageProducer); }
assertSameLinesWithFile
254,195
void (@NotNull String filePath, @NotNull String actualText, boolean trimBeforeComparing) { assertSameLinesWithFile(filePath, actualText, trimBeforeComparing, null); }
assertSameLinesWithFile
254,196
void (@NotNull String filePath, @NotNull String actualText, boolean trimBeforeComparing, @Nullable Supplier<String> messageProducer) { String fileText; try { if (OVERWRITE_TESTDATA) { VfsTestUtil.overwriteTestData(filePath, actualText, trimBeforeComparing); //noinspection UseOfSystemOutOrSystemErr System.out.println("F...
assertSameLinesWithFile
254,197
void (@NotNull String expectedText, @NotNull String actualText) { assertTextEquals(null, expectedText, actualText); }
assertTextEquals
254,198
void (@Nullable String message, @NotNull String expectedText, @NotNull String actualText) { if (!expectedText.equals(actualText)) { throw new FileComparisonFailure(Strings.notNullize(message), expectedText, actualText, null); } }
assertTextEquals
254,199
void (@NotNull CodeStyleSettings expected, @NotNull CodeStyleSettings settings) { if (!expected.equals(settings)) { Element oldS = new Element("temp"); expected.writeExternal(oldS); Element newS = new Element("temp"); settings.writeExternal(newS); String newString = JDOMUtil.writeElement(newS); String oldString = JDOMU...
checkCodeStyleSettingsEqual