mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup (spelling, throws list)
This commit is contained in:
@@ -25,8 +25,6 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.CompilerModuleExtension;
|
||||
import com.intellij.openapi.roots.CompilerProjectExtension;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.InvalidDataException;
|
||||
import com.intellij.openapi.util.WriteExternalException;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.pointers.VirtualFilePointer;
|
||||
@@ -85,10 +83,9 @@ public class CompilerModuleExtensionImpl extends CompilerModuleExtension {
|
||||
|
||||
|
||||
@Override
|
||||
public void readExternal(@NotNull Element element) throws InvalidDataException {
|
||||
public void readExternal(@NotNull Element element) {
|
||||
assert !myDisposed;
|
||||
final String value = element.getAttributeValue(JpsJavaModelSerializerExtension.INHERIT_COMPILER_OUTPUT_ATTRIBUTE);
|
||||
myInheritedCompilerOutput = value != null && Boolean.parseBoolean(value);
|
||||
myInheritedCompilerOutput = Boolean.parseBoolean(element.getAttributeValue(JpsJavaModelSerializerExtension.INHERIT_COMPILER_OUTPUT_ATTRIBUTE, "false"));
|
||||
myExcludeOutput = element.getChild(EXCLUDE_OUTPUT_TAG) != null;
|
||||
|
||||
myCompilerOutputPointer = getOutputPathValue(element, OUTPUT_TAG, !myInheritedCompilerOutput);
|
||||
@@ -101,7 +98,7 @@ public class CompilerModuleExtensionImpl extends CompilerModuleExtension {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeExternal(@NotNull Element element) throws WriteExternalException {
|
||||
public void writeExternal(@NotNull Element element) {
|
||||
assert !myDisposed;
|
||||
if (!myInheritedCompilerOutput) {
|
||||
if (myCompilerOutput != null) {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,7 +80,7 @@ public abstract class CompilerModuleExtension extends ModuleExtension {
|
||||
|
||||
/**
|
||||
* Makes this module inheriting compiler output from its project
|
||||
* @param inherit wether or not compiler output is inherited
|
||||
* @param inherit whether or not compiler output is inherited
|
||||
*/
|
||||
public abstract void inheritCompilerOutputPath(boolean inherit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user