CPD Results

The following document contains the results of PMD's CPD 4.2.2.

Duplications

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 22
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 24
public class KDEShortcutTask extends Task 
{
	Properties p = new Properties();

	File file = null;
	
	public class Property implements Runnable
	{
		String name=null, value=null;
		
		public void setName( String s)
		{
			name = s;
		}

		public void setValue( String s)
		{
			value = s;
		}
		
		public void addText( String s)
		{
			if( s.trim().length()>0)
				value = getProject().replaceProperties( s.trim());
		}
		
		public void run() 
		{
			if( name==null || value==null)
				throw new BuildException( "Attribute \"name\" and \"value\" are required for shortcut properties");
			
			p.put( name, value);
		}
	}
	
	public void setName( String s)
	{
		p.put( "Name", s);
	}

	public void setExecute( String s)

File Line
net\charabia\util\codec\Quantize.java 353
net\charabia\util\codec\Quantize.java 449
			int pixels[][] = this.pixels;

			int width = pixels.length;
			int height = pixels[0].length;

			// convert to indexed color
			for (int x = width; x-- > 0; ) {
				for (int y = height; y-- > 0; ) {
					int pixel = pixels[x][y];
					int red   = (pixel >> 16) & 0xFF;
					int green = (pixel >>  8) & 0xFF;
					int blue  = (pixel >>  0) & 0xFF;

File Line
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 597
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 636
	public DataEntry getData(String catId, String resourceId, String langId)
	{
		ResourceEntry catEntry = m_root.getResourceEntry(catId);
		if ((catEntry != null) && (catEntry.Directory != null))
		{
			ResourceEntry identEntry = catEntry.Directory.getResourceEntry(resourceId);
			if ((identEntry != null) && (identEntry.Directory != null))
			{
				ResourceEntry langEntry = identEntry.Directory.getResourceEntry(langId);
				if ((langEntry != null) && (langEntry.Data != null))
				{
					DataEntry dataslot = langEntry.Data;

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 44
net\sf\ovanttasks\ovanttasks\JNLPTask.java 988
        public class Property implements JNLPTaskMember {

            private String name = null;
            private String value = null;

            public void setName(String string) {
                name = string;
            }

            public void setValue(String string) {
                value = string;
            }

            public void writeElement(TransformerHandler hd) throws SAXException {
                AttributesImpl atts = new AttributesImpl();
                addAttribute(atts, "name", name);
                addAttribute(atts, "value", value);

                hd.startElement("", "", "property", atts);

File Line
net\sf\ovanttasks\ovanttasks\CallTask.java 34
net\sf\ovanttasks\ovanttasks\ExecuteTask.java 24
		if( _if==null && unless==null && _while==null && until==null)
		{
			throw new BuildException( "Either attribute \"if\", \"unless\", \"while\" or \"until\" have to be defined.");
		}
		
		if( _if!=null)
		{
			if( getProject().getProperty( _if)==null)
			{	
				log( "if condition: property \"" + _if + "\" is undefined. skip execute sub tasks", Project.MSG_DEBUG);
				return;
			}
			else
			{
				log( "if condition: property \"" + _if + "\" is defined. execute sub tasks", Project.MSG_DEBUG);

File Line
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 161
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 263
                            throw new BuildException("Strem empty");
                        }
                        position++;
                        shiftArray(scanBuffer);
                        // write a byte
                        scanBuffer[scanBuffer.length - 1] = (byte) nextb;
                    }

                    String value = p.getProperty(new String(scanBuffer));
                    p.remove(new String(scanBuffer));
                    log(new String(scanBuffer) + " at " + (position - 1)
                            + " replaced by " + value);
                    out.write(value.getBytes());

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 112
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 170
			log( "Writing kde shortcut file " + file.getAbsolutePath());
			
			PrintWriter pw = new PrintWriter( new FileWriter( file));
			pw.println( "[Desktop Entry]");
			Enumeration e = p.keys();
			while (e.hasMoreElements()) 
			{
				String key = (String)e.nextElement();
				pw.println( key + "=" + p.getProperty( key));
			}
			pw.println( "Type" + "=" + p.getProperty( "Type", "Application")); 

File Line
net\sf\ovanttasks\ovanttasks\WriteFileTask.java 29
net\sf\ovanttasks\ovanttasks\WriteFileTask.java 76
		if( append && file.exists())
		{
			try 
			{
				ByteArrayOutputStream out = new ByteArrayOutputStream();
				InputStream in = new FileInputStream( file);
	
				int i;
				while( (i=in.read())!=-1)
				{
					out.write( i);
				}	
				text = out.toString();
				in.close();
			} 
			catch (IOException ex) 
			{
				throw new BuildException( "Reading file contents to append to from " + file.getAbsolutePath() + " failed : " + ex.getMessage(), ex);

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 40
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 173
	public class Get implements Runnable
	{
		String property=null;
		String entry=null;
		String subKey=null; 

		public void setProperty( String s)
		{
			property = s;
		}

		public void setEntry( String s)
		{
			entry = s;
		}

		public void setSubKey( String s)
		{
			subKey = s;
		}

		public void run()
		{
			if( property==null)
				throw new BuildException( "<get> requires attribute \"property\".");

File Line
net\charabia\jsmoothgen\pe\PEFile.java 298
net\charabia\jsmoothgen\pe\PEFile.java 431
		offset = oldmsheader.e_lfanew + (m_header.NumberOfRvaAndSizes * 8) + 24
				+ 96;
		out.position(offset);
		for (int i = 0; i < sections.size(); i++) {
			// System.out.println(" offset: " + out.position());
			PESection sect = (PESection) sections.get(i);
			// sect.dump(System.out);
			ByteBuffer buf = sect.get();
			out.write(buf);
		}

File Line
net\charabia\util\codec\Quantize.java 376
net\charabia\util\codec\Quantize.java 464
					for ( ; ; ) {
						int id = (((red   > node.mid_red   ? 1 : 0) << 0) |
								  ((green > node.mid_green ? 1 : 0) << 1) |
								  ((blue  > node.mid_blue  ? 1 : 0) << 2)  );
						if (node.child[id] == null) {

File Line
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 569
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 651
				throw new BuildException( "Using attribute value in conjunction  with attribute node doesnt make sense.");
		
			Preferences p = rootPrefs; 	

			try
			{
				if( path!=null)
				{
					if( p.nodeExists( path))
					{	
						p = p.node( path);
					}
				}
		
				if( name!=null)
				{
					List list = Arrays.asList( p.keys());
					if( list.contains( name))
					{	

File Line
net\charabia\jsmoothgen\pe\PEHeader.java 431
net\charabia\jsmoothgen\pe\PEHeader.java 457
    private long findNewSize(long current, Vector oldsections, Vector newsections)
    {
	for (int i=0; i<oldsections.size(); i++)
	    {
		PESection sect = (PESection)oldsections.get(i);
		if (sect.VirtualAddress == current)
		    {
			PESection newsect = (PESection)newsections.get(i);
			//			System.out.println("Translation Size found for " + current + " = " + i + " (" +newsect.VirtualAddress + ")=" + newsect.getName());
			//			System.out.println("         Old size " + sect.VirtualSize + " vs new size " + newsect.VirtualSize);
			return newsect.VirtualSize;

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 141
net\sf\ovanttasks\ovanttasks\JNLPTask.java 525
        public void setMain_Class(String string) {
            mainClass = string;
        }

        public void setMainClass(String mainClass) {
            this.mainClass = mainClass;
        }

        public void writeElement(TransformerHandler hd) throws SAXException {
            AttributesImpl atts = new AttributesImpl();
            addAttribute(atts, "main-class", mainClass);

            hd.startElement("", "", "installer-desc", atts);

File Line
net\sf\ovanttasks\ovanttasks\CallTask.java 81
net\sf\ovanttasks\ovanttasks\ExecuteTask.java 71
					super.execute();
				}				
			}
		}
		
		if( _while!=null)
		{
			while( true)
			{
				if( getProject().getProperty( _while)==null)
				{	
					log( "while condition: property \"" + _while + "\" is undefined. skip execute sub tasks", Project.MSG_DEBUG);
					return;
				}
				else
				{
					log( "while condition: property \"" + _while + "\" is defined. execute sub tasks", Project.MSG_DEBUG);

File Line
net\sf\ovanttasks\ovanttasks\CallTask.java 64
net\sf\ovanttasks\ovanttasks\ExecuteTask.java 54
				super.execute();
				return;				
			}
		}

		if( until!=null)
		{
			while( true)
			{
				if( getProject().getProperty( until)!=null)
				{	
					log( "until condition: property \"" + until + "\" is defined. skip execute sub tasks", Project.MSG_DEBUG);
					return;
				}
				else
				{
					log( "until condition: property \"" + until + "\" is undefined. execute sub tasks", Project.MSG_DEBUG);

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 74
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 109
	}

	public void setIcon( String s)
	{
		p.put( "Icon", s);
	}

	public void setIconFile( File f)
	{
		p.put( "Icon", f.getAbsolutePath());
	}
	
	public void setComment( String s)
	{
		p.put( "Comment", s);
	}

	public void setTerminal( boolean b)

File Line
net\sf\ovanttasks\ovanttasks\CallTask.java 49
net\sf\ovanttasks\ovanttasks\ExecuteTask.java 39
				super.execute();
				return;
			}
		}
		
		if( unless!=null)
		{
			if( getProject().getProperty( unless)!=null)
			{	
				log( "unless condition: property \"" + unless + "\" is defined. skip execute sub tasks", Project.MSG_DEBUG);
				return;
			}
			else
			{
				log( "unless condition: property \"" + unless + "\" is undefined. execute sub tasks", Project.MSG_DEBUG);

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 66
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 103
			Registry reg=null;
	
			if( subKey!=null)
				reg = new Registry( Win32RegistryTask.this.reg, subKey);
			else
				reg = Win32RegistryTask.this.reg;	

			if( entry!=null)
			{
				if( reg.exists() && reg.hasValue( entry))

File Line
net\sf\ovanttasks\ovanttasks\CallTask.java 129
net\sf\ovanttasks\ovanttasks\ExecuteTask.java 92
	}
	
	public void setIf(String string)
	{
		_if = string;
	}

	public void setUnless(String string)
	{
		unless = string;
	}
	
	public void setWhile(String string)
	{
		_while = string;
	}
	
	public void setUntil(String string)
	{
		until = string;
	}
}

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 263
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 384
				throw new BuildException( "<export> requires either attribute \"file\" or the import as body content to be set.");
		
			Registry reg=null;

			if( subKey!=null)
				reg = new Registry( Win32RegistryTask.this.reg, subKey);
			else
				reg = Win32RegistryTask.this.reg;	

			if( !reg.exists())
				reg.create();

File Line
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 655
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 667
	public ResourceEntry buildResourceEntry(String id, ImageResourceDirectory dir)
	{
		if ((id.length() > 1) && (id.charAt(0) == '#'))
		{
			int intid = Integer.parseInt(id.substring(1));
			return new ResourceEntry(intid, dir);

File Line
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 181
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 286
                ex.printStackTrace();
            }
            copy(archive, out);

            out.close();
        } catch (FileNotFoundException e) {
            throw new BuildException("Cannot open archive", e);
        } catch (IOException e) {
            throw new BuildException("IO Problem occured", e);
        }
    }

File Line
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 114
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 281
		}
		
		private void indent(int level, PrintStream out)
		{
			for (int i=0; i<level; i++)
				out.print("    ");
		}
		
		public int buildBuffer(ByteBuffer buffer, long virtualBaseOffset, int dataOffset)
		{

File Line
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 152
net\sf\ovanttasks\ovanttasks\AbstractStubTask.java 253
                                : getWin32ConsoleLessStub());
                in.read(scanBuffer, 0, scanBuffer.length);
                long position = 1;
                while (p.size() > 0) {
                    while (!p.containsKey(new String(scanBuffer))) {

File Line
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 279
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 423
				re.dump(out, level+1);
			}
		}
		
		private void indent(int level, PrintStream out)
		{
			for (int i=0; i<level; i++)
				out.print("    ");
		}
		
		public int diskSize()

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 200
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 384
				throw new BuildException( "<export> requires attribute \"file\".");
			
			Registry reg=null;

			if( subKey!=null)
				reg = new Registry( Win32RegistryTask.this.reg, subKey);
			else
				reg = Win32RegistryTask.this.reg;	

			if( !reg.exists())

File Line
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 549
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 615
		String property = null;
		
		public void setName(String string)
		{
			name = string;
		}

		public void setNode(String string)
		{
			node = string;
		}

		public void setPath(String string)
		{
			path = string;
		}

		public void setProperty(String string)

File Line
net\sf\ovanttasks\ovanttasks\http\HttpDigestAuth.java 39
net\sf\ovanttasks\ovanttasks\http\HttpTask.java 691
            String encodeStr = username + ":" + password;
            Base64Encode encoder = new Base64Encode();
            char[] encodedPass = encoder.encodeBase64(encodeStr.getBytes());
            String authStr = "BASIC " + new String(encodedPass);

File Line
net\sf\ovanttasks\ovanttasks\CompareTask.java 56
net\sf\ovanttasks\ovanttasks\CompareTask.java 129
					log( left.toString() + " >= " + arg2.toString() + " = " + i, Project.MSG_DEBUG);
					getProject().setProperty( property, "true");
				}
			}
		};
		conditions.add( comparison);
		return comparison; 
	}

	public Comparison createGreater()

File Line
net\charabia\jsmoothgen\pe\res\ResIcon.java 406
net\sf\ovanttasks\ovanttasks\Win32ReplaceIconTask.java 56
				ii = new ImageIcon( icon.toURL());
			
			Image img = ii.getImage().getScaledInstance( 32, 32, Image.SCALE_DEFAULT);
			while( img.getHeight( null)==-1)
				Thread.sleep( 50);							
			ResIcon resIcon = new ResIcon( img);

File Line
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 96
net\charabia\jsmoothgen\pe\PEResourceDirectory.java 257
			if ((size%4)>0)
				size += 4-(size%4);
			return size;
		}
		
		public void dump(PrintStream out, int level)
		{
			indent(level, out);

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 46
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 58
			if( value==null && s.trim().length()>0)
				value = getProject().replaceProperties( s.trim());
		}
		
		public void run()
		{
			if( name==null)

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 104
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 162
		Iterator iter = customProperties.iterator();
		while (iter.hasNext()) {
			Property prop = (Property) iter.next();
			prop.run();
		}
		
		try 
		{
			log( "Writing kde shortcut file " + file.getAbsolutePath());

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 44
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 58
			if( value==null && s.trim().length()>0)
				value = getProject().replaceProperties( s.trim());
		}
		
		public void run()
		{
			if( name==null)

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 288
net\sf\ovanttasks\ovanttasks\JNLPTask.java 706
            }

            public void writeElement(TransformerHandler hd) throws SAXException {
                AttributesImpl atts = new AttributesImpl();
                addAttribute(atts, "href", href);
                addAttribute(atts, "version", version);
                addAttribute(atts, "name", name);

File Line
net\sf\ovanttasks\ovanttasks\CompareTask.java 56
net\sf\ovanttasks\ovanttasks\CompareTask.java 147
					log( left.toString() + " > " + arg2.toString() + " = " + i, Project.MSG_DEBUG);
					getProject().setProperty( property, "true");
				}
			}
		};
		conditions.add( comparison);
		return comparison; 
	}

	
	/** @see org.apache.tools.ant.Task#execute() */
	public void execute() throws BuildException

File Line
net\charabia\util\codec\Quantize.java 582
net\charabia\util\codec\Quantize.java 629
			void colormap() {
				if (nchild != 0) {
					for (int id = 0; id < 8; id++) {
						if (child[id] != null) {
							child[id].colormap();

File Line
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 563
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 639
			value = string;
		}
		
		public void run()
		{
			if( (name!=null && node!=null) || (name==null && node==null))
				throw new BuildException( "Attribute name OR node is required in element test");

File Line
net\sf\ovanttasks\ovanttasks\http\HttpBasicAuth.java 19
net\sf\ovanttasks\ovanttasks\http\HttpDigestAuth.java 20
public class HttpDigestAuth implements HttpAuthenticationStrategy {


    /**
     * Sets the AuthenticationHeader attribute of the HttpAuthStrategy
     * object
     *
     * @param requestConnection The current request
     * @param responseConnection any previous request, which can contain a
     *          challenge for the next round. Will often be null
     * @param user the current user name
     * @param password the current password
     */
    public void setAuthenticationHeader(URLConnection requestConnection,
            URLConnection responseConnection,
            String username, String password)
            throws BuildException {

        if (username != null) {
            String encodeStr = username + ":" + password;

File Line
net\charabia\util\codec\Quantize.java 582
net\charabia\util\codec\Quantize.java 653
			void closestColor(int red, int green, int blue, Search search) {
				if (nchild != 0) {
					for (int id = 0; id < 8; id++) {
						if (child[id] != null) {
							child[id].closestColor(red, green, blue, search);

File Line
net\charabia\util\codec\IcoCodec.java 269
net\charabia\util\codec\IcoCodec.java 278
                            image.setRGB(x, y, (0xFF << 24) | (redp[col1] << 16) | (greenp[col1] << 8) | bluep[col1]);

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 701
net\sf\ovanttasks\ovanttasks\JNLPTask.java 840
                maxHeapSize = string;
            }

            public void setVersion(String string) {
                version = string;
            }

            public void writeElement(TransformerHandler hd) throws SAXException {
                AttributesImpl atts = new AttributesImpl();
                addAttribute(atts, "version", version);

File Line
net\sf\ovanttasks\ovanttasks\CompareTask.java 67
net\sf\ovanttasks\ovanttasks\CompareTask.java 120
	public Comparison createGreaterOrEqual()
	{
		Comparison comparison = new Comparison()
		{
			public void eval(Comparable left, Comparable right)
			{
				int i = left.compareTo( right);
				if( !(i<0))

File Line
net\charabia\jsmoothgen\pe\res\ResIcon.java 44
net\charabia\util\codec\IcoCodec.java 91
    static public class IconHeader {

        public long Size;            /* Size of this header in bytes DWORD 0*/

        public long Width;           /* Image width in pixels LONG 4*/

        public long Height;          /* Image height in pixels LONG 8*/

        public int Planes;          /* Number of color planes WORD 12 */

        public int BitsPerPixel;    /* Number of bits per pixel WORD 14 */
        /* Fields added for Windows 3.x follow this line */

        public long Compression;     /* Compression methods used DWORD 16 */

        public long SizeOfBitmap;    /* Size of bitmap in bytes DWORD 20 */

        public long HorzResolution;  /* Horizontal resolution in pixels per meter LONG 24 */

        public long VertResolution;  /* Vertical resolution in pixels per meter LONG 28*/

        public long ColorsUsed;      /* Number of colors in the image DWORD 32 */

        public long ColorsImportant; /* Minimum number of important colors DWORD 36 */


        public IconHeader(BinaryInputStream in) throws IOException {

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 64
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 297
				throw new BuildException( "<get> requires attribute \"entry\".");

			Registry reg=null;

			if( subKey!=null)
				reg = new Registry( Win32RegistryTask.this.reg, subKey);
			else
				reg = Win32RegistryTask.this.reg;	

			if( !reg.exists())

File Line
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 348
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 377
				double i = java.lang.Double.valueOf( value).doubleValue();
				p.putDouble( name, i);
				
				rootPrefs.sync();
			}
			catch (NumberFormatException e)
			{
				throw new BuildException( getSubTaskName() + " : " + value + "Value is not parsable as double");

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 702
net\sf\ovanttasks\ovanttasks\JNLPTask.java 1376
    }

    public void setVersion(String string) {
        version = string;
    }

    public void writeElement(TransformerHandler hd) throws SAXException {
        AttributesImpl atts = new AttributesImpl();
        addAttribute(atts, "spec", spec);

File Line
net\sf\ovanttasks\ovanttasks\CompareTask.java 47
net\sf\ovanttasks\ovanttasks\CompareTask.java 85
	public Comparison createGreater()
	{
		Comparison comparison = new Comparison()
		{
			public void eval(Comparable left, Comparable right)
			{
				int i = left.compareTo( right);
				if( i>0)

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 103
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 202
			Registry reg=null;

			if( subKey!=null)
				reg = new Registry( Win32RegistryTask.this.reg, subKey);
			else
				reg = Win32RegistryTask.this.reg;	

			if( !reg.exists())

File Line
net\sf\ovanttasks\ovanttasks\PropertiesTask.java 61
net\sf\ovanttasks\ovanttasks\PropertiesTask.java 69
		public void setUnless(String string)
		{
			if( isTrue!=null || isFalse!=null || _if!=null || unless!=null || available!=null)
				throw new BuildException( "Only one of istrue, isfalse, if, unless or available can be used as property attribute");

File Line
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 474
net\sf\ovanttasks\ovanttasks\PreferencesTask.java 651
				throw new BuildException( "Attribute name OR node is required in element test");

			Preferences p = rootPrefs; 	

			try
			{
				if( path!=null)
				{
					if( p.nodeExists( path))
					{	
						p = p.node( path);
					}

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 243
net\sf\ovanttasks\ovanttasks\JNLPTask.java 312
            public void writeElement(TransformerHandler hd) throws SAXException {
                AttributesImpl atts = new AttributesImpl();
                addAttribute(atts, "href", href);

                hd.startElement("", "", "related-content", atts);

File Line
net\sf\ovanttasks\ovanttasks\CompareTask.java 47
net\sf\ovanttasks\ovanttasks\CompareTask.java 120
	public Comparison createLesserOrEqual()
	{
		Comparison comparison = new Comparison()
		{
			public void eval(Comparable left, Comparable right)
			{
				int i = left.compareTo( right);
				if( !(i>0))

File Line
net\charabia\jsmoothgen\pe\PEHeader.java 121
net\charabia\jsmoothgen\pe\PEOldMSHeader.java 66
    }

    public Object clone() throws CloneNotSupportedException
    {
	return super.clone();
    }

    public void read() throws IOException
    {
	FileChannel ch = m_pe.getChannel();
	ByteBuffer mz = ByteBuffer.allocate(64);

File Line
net\sf\ovanttasks\ovanttasks\stub.java 113
net\sf\ovanttasks\ovanttasks\stub.java 201
	public void writeEntry( JarFile jarFile, JarEntry entry)
	{
		String name = entry.getName();
		name = name.replace( '/', File.separatorChar); 
		
		File file = new File( tempDir, name);

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 54
net\sf\ovanttasks\ovanttasks\JNLPTask.java 97
            width = string;
        }

        public void writeElement(TransformerHandler hd) throws SAXException {
            AttributesImpl atts = new AttributesImpl();
            addAttribute(atts, "name", name);
            addAttribute(atts, "mainClass", mainClass);

File Line
net\charabia\util\codec\Quantize.java 582
net\charabia\util\codec\Quantize.java 602
			int reduce(int threshold, int next_threshold) {
				if (nchild != 0) {
					for (int id = 0; id < 8; id++) {
						if (child[id] != null) {

File Line
net\sf\ovanttasks\ovanttasks\KDEShortcutDirectoryTask.java 65
net\sf\ovanttasks\ovanttasks\KDEShortcutTask.java 90
	}
	
	ArrayList customProperties = new ArrayList();
	
	public Property createProperty()
	{
		Property prop = new Property();
		customProperties.add( prop);
		return  prop;
	}
	
	public WorkingDirectory createWorkingDirectory()

File Line
net\charabia\util\io\BinaryInputStream.java 102
net\charabia\util\io\BinaryInputStream.java 112
	public long readUIntLE() throws IOException
	{
	int a = readByte();
	int b = readByte();
	int c = readByte();
	int d = readByte();
	
	return (long)((d&0xff)<<24) | (long)((c&0xff)<<16) | (long)((b&0xff)<<8) | (long)(a&0xff);

File Line
net\charabia\util\io\BinaryInputStream.java 82
net\charabia\util\io\BinaryInputStream.java 92
	public long readUIntBE() throws IOException
	{
	int a = read();
	int b = read();
	int c = read();
	int d = read();
	
	return (long)((a&0xff)<<24) | (long)((b&0xff)<<16) | (long)((c&0xff)<<8) | (long)(d&0xff);

File Line
net\charabia\jsmoothgen\pe\PEHeader.java 117
net\charabia\jsmoothgen\pe\PESection.java 56
    public PESection(PEFile pef, long baseoffset)
    {
	m_pe = pef;
	m_baseoffset = baseoffset;
    }

    public Object clone() throws CloneNotSupportedException
    {
	return super.clone();
    }

    public String getName()

File Line
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 51
net\sf\ovanttasks\ovanttasks\Win32RegistryTask.java 91
		public void setEntry( String s)
		{
			entry = s;
		}
	
		public void setSubKey( String s)
		{
			subKey = s;
		}
	
		public void run()
		{

File Line
net\sf\ovanttasks\ovanttasks\JNLPTask.java 55
net\sf\ovanttasks\ovanttasks\JNLPTask.java 975
            }

            public void writeElement(TransformerHandler hd) throws SAXException {
                AttributesImpl atts = new AttributesImpl();
                addAttribute(atts, "name", name);
                addAttribute(atts, "part", part);