cleanup — add NotNull

This commit is contained in:
Vladimir Krivosheev
2017-01-13 13:46:38 +01:00
parent 55ab006770
commit c63e0b1d77
3 changed files with 9 additions and 9 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 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.
@@ -85,7 +85,7 @@ public class CompilerModuleExtensionImpl extends CompilerModuleExtension {
@Override
public void readExternal(final Element element) throws InvalidDataException {
public void readExternal(@NotNull Element element) throws InvalidDataException {
assert !myDisposed;
final String value = element.getAttributeValue(JpsJavaModelSerializerExtension.INHERIT_COMPILER_OUTPUT_ATTRIBUTE);
myInheritedCompilerOutput = value != null && Boolean.parseBoolean(value);
@@ -101,7 +101,7 @@ public class CompilerModuleExtensionImpl extends CompilerModuleExtension {
}
@Override
public void writeExternal(final Element element) throws WriteExternalException {
public void writeExternal(@NotNull Element element) throws WriteExternalException {
assert !myDisposed;
if (!myInheritedCompilerOutput) {
if (myCompilerOutput != null) {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 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.
@@ -101,7 +101,7 @@ public class JavaModuleExternalPathsImpl extends JavaModuleExternalPaths {
}
@Override
public void readExternal(Element element) throws InvalidDataException {
public void readExternal(@NotNull Element element) throws InvalidDataException {
for (PersistentOrderRootType orderRootType : OrderRootType.getAllPersistentTypes()) {
String paths = orderRootType.getModulePathsName();
if (paths != null) {
@@ -116,7 +116,7 @@ public class JavaModuleExternalPathsImpl extends JavaModuleExternalPaths {
}
@Override
public void writeExternal(Element element) throws WriteExternalException {
public void writeExternal(@NotNull Element element) throws WriteExternalException {
for (OrderRootType orderRootType : myOrderRootPointerContainers.keySet()) {
VirtualFilePointerContainer container = myOrderRootPointerContainers.get(orderRootType);
if (container != null && container.size() > 0) {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 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.
@@ -149,11 +149,11 @@ public class MavenSourceFoldersModuleExtension extends ModuleExtension<MavenSour
}
@Override
public void readExternal(Element element) throws InvalidDataException {
public void readExternal(@NotNull Element element) throws InvalidDataException {
}
@Override
public void writeExternal(Element element) throws WriteExternalException {
public void writeExternal(@NotNull Element element) throws WriteExternalException {
}
public void clearSourceFolders() {