debian/0000755000000000000000000000000012251343046007166 5ustar debian/control0000644000000000000000000000151212251337511010570 0ustar Source: jformatstring Priority: extra Maintainer: Debian Java Maintainers Uploaders: ShuxiongYe Build-Depends: debhelper (>= 9.0.0), default-jdk, ant, junit4, ant-optional Standards-Version: 3.9.5 Section: libs Homepage: http://code.google.com/p/j-format-string/ Vcs-Git: git://git.debian.org/git/pkg-java/jformatstring.git Vcs-Browser: http://git.debian.org/?p=pkg-java/jformatstring.git;a=summary Package: libjformatstring-java Section: java Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Java format string compile-time checker This project is derived from Sun's implementation of java.util.Formatter. It is designed to allow compile time checks as to whether or not a use of a format string will be erroneous when executed at runtime. debian/source/0000755000000000000000000000000012251337414010470 5ustar debian/source/format0000644000000000000000000000001412251337414011676 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012251337414010617 5ustar debian/patches/0001-RemoveExternalLibDependencyAndFixTestModule.patch0000644000000000000000000001277612251337414022721 0ustar Index: jformatstring-0.10~20131207/build.xml =================================================================== --- jformatstring-0.10~20131207.orig/build.xml 2013-12-09 08:44:03.355428356 +0800 +++ jformatstring-0.10~20131207/build.xml 2013-12-09 08:50:41.975425237 +0800 @@ -5,13 +5,7 @@ - - - - - - - + @@ -20,9 +14,9 @@ + - @@ -37,42 +31,35 @@ + + + Running JUnit test cases for jformatstring... + + + + + + + + + + + + + + + + + - - - FB home ${findbugs.home} - FB ant ${anttask.jar} - - - - - - - - - - - - - - - - - - - Index: jformatstring-0.10~20131207/src/junit/edu/umd/cs/findbugs/formatStringChecker/FormatterRuntimeTest.java =================================================================== --- jformatstring-0.10~20131207.orig/src/junit/edu/umd/cs/findbugs/formatStringChecker/FormatterRuntimeTest.java 2013-12-09 08:30:37.751434000 +0800 +++ jformatstring-0.10~20131207/src/junit/edu/umd/cs/findbugs/formatStringChecker/FormatterRuntimeTest.java 2013-12-06 22:59:53.870953000 +0800 @@ -33,13 +33,9 @@ import org.junit.Test; -import edu.umd.cs.findbugs.annotations.ExpectWarning; -import edu.umd.cs.findbugs.annotations.NoWarning; - public class FormatterRuntimeTest { @Test - @NoWarning("FS") public void shouldWork() { System.out.println(String.format("%d%n%d", 42, (short) 42)); System.out.println(String.format("%d%n", new BigInteger("42"))); @@ -48,35 +44,29 @@ } @Test(expected = IllegalFormatConversionException.class) - @ExpectWarning("FS") public void stringWhereIntegerExpected() { System.out.println(String.format("%d", "test")); } @Test(expected = MissingFormatArgumentException.class) - @ExpectWarning("FS") public void notEnoughParameters() { System.out.println(String.format("%s%s", "test")); } - @ExpectWarning("VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY") public void passingAnArray() { System.out.println(System.out.printf("%s", new int[] { 42, 17 })); } - @ExpectWarning("FS") public void passingAnIntToABoolean() { System.out.println(System.out.printf("%b", 0)); } @Test(expected = UnknownFormatConversionException.class) - @ExpectWarning("FS") public void formatDateWithY() { System.out.println(String.format("%Y", new Date())); } @Test - @NoWarning("FS") public void testBug1874856FalsePositive() { // None of these should yield warnings Calendar c = new GregorianCalendar(1993, 4, 23); @@ -95,7 +85,6 @@ } @Test(expected = MissingFormatArgumentException.class) - @ExpectWarning("FS") public void testBug1874856TruePositive() { Calendar c = new GregorianCalendar(1993, 4, 23); // Actually, this one should generate a warning @@ -107,13 +96,11 @@ } @Test(expected = IllegalFormatConversionException.class) - @ExpectWarning("FS") public void testDateMismatch() { System.out.printf("%tY\n", "2008"); } @Test - @ExpectWarning("FS") public void testSqlDates() { Calendar c = new GregorianCalendar(1993, 4, 23, 12, 34, 56); java.sql.Date date = new java.sql.Date(c.getTimeInMillis()); debian/patches/series0000644000000000000000000000006712251337414012037 0ustar 0001-RemoveExternalLibDependencyAndFixTestModule.patch debian/copyright0000644000000000000000000000255512251337613011133 0ustar Format: http://dep.debian.net/deps/dep5 Ustream-Name: jformatstring Source: http://code.google.com/p/j-format-string/ Files: * Copyright: 2013 Bill Pugh, pugh@cs.umd.edu 2013 Andrey Loskutov, Loskutov@gmx.de 2013 Keith Lea 2012 David Hovemeyer 2012 Nay Ayewah 2012 Ben Langmead 2012 Tomas Pollak 2012 Phil Crosby 2012 Peter Friese 2012 Dave Brosius 2012 Brian Goetz 2012 Rohan Lloyd License: GPL-2.0+ Files: debian/* Copyright: 2013 ShuxiongYe License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/libjformatstring-java.install0000644000000000000000000000004712251337414015060 0ustar build/jFormatString.jar usr/share/java debian/rules0000755000000000000000000000056512251337724010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_build: ant -f $(CURDIR)/build.xml build override_dh_auto_clean: ant -f $(CURDIR)/build.xml clean rm -rf build dh_auto_clean override_dh_install: dh_install --sourcedir=$(CURDIR) override_dh_auto_test: ant -f $(CURDIR)/build.xml test debian/changelog0000644000000000000000000000114512251342732011042 0ustar jformatstring (0.10~20131207-1) unstable; urgency=low * Findbugs uses google code to host the code of jformatstring. * Add test module in ant.xml -- ShuxiongYe Sat, 07 Dec 2013 12:35:21 +0800 jformatstring (0.10~20081016-2) unstable; urgency=low * add patch for building findbugs - debian/patch/0003-FormatterNumberFormatException.patch -- ShuxiongYe Tue, 03 Sep 2013 22:08:15 +0800 jformatstring (0.10~20081016-1) unstable; urgency=low * Initial release (Closes: #721297) -- ShuxiongYe Fri, 30 Aug 2013 07:55:34 +0800 debian/compat0000644000000000000000000000000212251337414010366 0ustar 9