From c63e0b1d77d036d96f4255340b2855ddbf0fb094 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Thu, 12 Jan 2017 16:24:02 +0100 Subject: [PATCH] =?UTF-8?q?cleanup=20=E2=80=94=20add=20NotNull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../openapi/roots/impl/CompilerModuleExtensionImpl.java | 6 +++--- .../openapi/roots/impl/JavaModuleExternalPathsImpl.java | 6 +++--- .../maven/importing/MavenSourceFoldersModuleExtension.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java/java-impl/src/com/intellij/openapi/roots/impl/CompilerModuleExtensionImpl.java b/java/java-impl/src/com/intellij/openapi/roots/impl/CompilerModuleExtensionImpl.java index 34cdad874baa..ab2174ca3be7 100644 --- a/java/java-impl/src/com/intellij/openapi/roots/impl/CompilerModuleExtensionImpl.java +++ b/java/java-impl/src/com/intellij/openapi/roots/impl/CompilerModuleExtensionImpl.java @@ -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) { diff --git a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/JavaModuleExternalPathsImpl.java b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/JavaModuleExternalPathsImpl.java index 25aa400bd684..fdec3bbdfd2a 100644 --- a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/JavaModuleExternalPathsImpl.java +++ b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/JavaModuleExternalPathsImpl.java @@ -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) { diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenSourceFoldersModuleExtension.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenSourceFoldersModuleExtension.java index a16e3b820e82..e9475b476cea 100644 --- a/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenSourceFoldersModuleExtension.java +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenSourceFoldersModuleExtension.java @@ -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