[maven-repo-helper] 01/01: Removed the no longer used Preconditions class

Emmanuel Bourg ebourg-guest at alioth.debian.org
Mon Sep 2 17:11:51 UTC 2013


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository maven-repo-helper.

commit faaa0fffc493370307443de133e5ff662a931d5c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Sep 2 19:11:29 2013 +0200

    Removed the no longer used Preconditions class
---
 src/main/java/org/debian/maven/util/Preconditions.java |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/main/java/org/debian/maven/util/Preconditions.java b/src/main/java/org/debian/maven/util/Preconditions.java
deleted file mode 100644
index 915cc3a..0000000
--- a/src/main/java/org/debian/maven/util/Preconditions.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.debian.maven.util;
-
-public class Preconditions {
-
-    public static <T> T checkNotNull(T reference) {
-        if (reference == null) throw new NullPointerException();
-        return reference;
-    }
-
-    public static String checkNotEmpty(String s) {
-        if ("" == checkNotNull(s)) throw new IllegalArgumentException("Empty String");
-        return s;
-    }
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-repo-helper.git



More information about the pkg-java-commits mailing list