diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-16 12:07:02 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-02-16 12:17:32 +0400 |
commit | f3141d167b0198abb0d81339ee751535c7f5a421 (patch) | |
tree | 87a519c5367a44a8f9674582f07d90c348059eed /sonar-duplications | |
parent | 385c33047ee4cb87cd0946c2fc365d7bcf65133b (diff) | |
download | sonarqube-f3141d167b0198abb0d81339ee751535c7f5a421.tar.gz sonarqube-f3141d167b0198abb0d81339ee751535c7f5a421.zip |
Enforce that parameters are non null by default in sonar-duplications
Diffstat (limited to 'sonar-duplications')
4 files changed, 58 insertions, 2 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/block/package-info.java b/sonar-duplications/src/main/java/org/sonar/duplications/block/package-info.java new file mode 100644 index 00000000000..d35ba05fd58 --- /dev/null +++ b/sonar-duplications/src/main/java/org/sonar/duplications/block/package-info.java @@ -0,0 +1,25 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ + +@ParametersAreNonnullByDefault +package org.sonar.duplications.block; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/index/package-info.java b/sonar-duplications/src/main/java/org/sonar/duplications/index/package-info.java new file mode 100644 index 00000000000..6455e11ce79 --- /dev/null +++ b/sonar-duplications/src/main/java/org/sonar/duplications/index/package-info.java @@ -0,0 +1,25 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2012 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ + +@ParametersAreNonnullByDefault +package org.sonar.duplications.index; + +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/statement/package-info.java b/sonar-duplications/src/main/java/org/sonar/duplications/statement/package-info.java index 4dffcdd92f6..a1d238d6ec9 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/statement/package-info.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/statement/package-info.java @@ -20,8 +20,11 @@ /** * Provides a basic framework to create list of statements from list of tokens. - * + * * The entry point of this framework is the {@link org.sonar.duplications.statement.StatementChunker} class. */ +@ParametersAreNonnullByDefault package org.sonar.duplications.statement; +import javax.annotation.ParametersAreNonnullByDefault; + diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/token/package-info.java b/sonar-duplications/src/main/java/org/sonar/duplications/token/package-info.java index a6e14c52345..d540bfc37f0 100644 --- a/sonar-duplications/src/main/java/org/sonar/duplications/token/package-info.java +++ b/sonar-duplications/src/main/java/org/sonar/duplications/token/package-info.java @@ -20,8 +20,11 @@ /** * Provides a basic framework to sequentially read any kind of character stream and create list of tokens. - * + * * The entry point of this framework is the {@link org.sonar.duplications.token.TokenChunker} class. */ +@ParametersAreNonnullByDefault package org.sonar.duplications.token; +import javax.annotation.ParametersAreNonnullByDefault; + |