From: <mu...@us...> - 2007-06-21 15:03:15
|
Revision: 69 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=69&view=rev Author: mungady Date: 2007-06-21 08:03:13 -0700 (Thu, 21 Jun 2007) Log Message: ----------- Fixed Eclipse warnings. Modified Paths: -------------- trunk/source/org/jfree/chart/ui/BasicProjectInfo.java Modified: trunk/source/org/jfree/chart/ui/BasicProjectInfo.java =================================================================== --- trunk/source/org/jfree/chart/ui/BasicProjectInfo.java 2007-06-21 15:02:48 UTC (rev 68) +++ trunk/source/org/jfree/chart/ui/BasicProjectInfo.java 2007-06-21 15:03:13 UTC (rev 69) @@ -61,6 +61,11 @@ private String libraryClass; private transient Library library; + /** + * Creates a new instance. + * + * @param libraryClass the library class. + */ public OptionalLibraryHolder(String libraryClass) { if (libraryClass == null) { throw new NullPointerException( @@ -69,6 +74,11 @@ this.libraryClass = libraryClass; } + /** + * Creates a new instance. + * + * @param library the library (<code>null</code> not permitted). + */ public OptionalLibraryHolder(Library library) { if (library == null) { throw new NullPointerException("Library must not be null."); @@ -77,15 +87,25 @@ this.libraryClass = library.getClass().getName(); } + /** + * Returns the library class. + * + * @return The library class. + */ public String getLibraryClass() { - return libraryClass; + return this.libraryClass; } + /** + * Returns the library. + * + * @return The library. + */ public Library getLibrary() { - if (library == null) { - library = loadLibrary(libraryClass); + if (this.library == null) { + this.library = loadLibrary(this.libraryClass); } - return library; + return this.library; } protected Library loadLibrary(String classname) { @@ -245,9 +265,9 @@ */ public Library[] getOptionalLibraries() { ArrayList libraries = new ArrayList(); - for (int i = 0; i < optionalLibraries.size(); i++) { + for (int i = 0; i < this.optionalLibraries.size(); i++) { OptionalLibraryHolder holder = - (OptionalLibraryHolder) optionalLibraries.get(i); + (OptionalLibraryHolder) this.optionalLibraries.get(i); Library l = holder.getLibrary(); if (l != null) { libraries.add(l); @@ -257,11 +277,9 @@ } /** - * Adds an optional library. These libraries will be booted, if they define - * a boot class. A missing class is considered non-fatal and it is assumed - * that the programm knows how to handle that. + * Adds an optional library. * - * @param library the library. + * @param libraryClass the library. */ public void addOptionalLibrary(String libraryClass) { if (libraryClass == null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |