]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 31 Mar 2016 10:23:32 +0000 (12:23 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 31 Mar 2016 10:31:20 +0000 (12:31 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/internal/package-info.java [new file with mode: 0644]
sonar-plugin-api/src/main/java/org/sonar/api/utils/DateUtils.java

diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/internal/package-info.java b/sonar-plugin-api/src/main/java/org/sonar/api/internal/package-info.java
new file mode 100644 (file)
index 0000000..24caa2c
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program 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.
+ *
+ * This program 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 this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+@ParametersAreNonnullByDefault
+package org.sonar.api.internal;
+
+import javax.annotation.ParametersAreNonnullByDefault;
+
index 2f31b3f506b57a4ac5a5b1262712f1c403b184e3..ab8c90fbb52cd3ba47ef46b4b419dd201868370c 100644 (file)
@@ -175,7 +175,7 @@ public final class DateUtils {
     }
 
     private DateFormat getDateFormat() {
-      return (DateFormat) ((Reference) cache.get()).get();
+      return cache.get().get();
     }
 
     @Override