Author: olamy
Date: Fri Sep 23 06:43:19 2011
New Revision: 1174543
URL: http://svn.apache.org/viewvc?rev=1174543&view=rev
Log:
format code
Modified:
archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryTask.java
Modified:
archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryTask.java
URL:
http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryTask.java?rev=1174543&r1=1174542&r2=1174543&view=diff
==============================================================================
---
archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryTask.java
(original)
+++
archiva/trunk/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/main/java/org/apache/archiva/scheduler/repository/RepositoryTask.java
Fri Sep 23 06:43:19 2011
@@ -1,9 +1,9 @@
package org.apache.archiva.scheduler.repository;
-import java.io.File;
-
import org.codehaus.plexus.taskqueue.Task;
+import java.io.File;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -24,59 +24,22 @@ import org.codehaus.plexus.taskqueue.Tas
*/
/**
- * DataRefreshTask - task for discovering changes in the repository
- * and updating all associated data.
+ * DataRefreshTask - task for discovering changes in the repository
+ * and updating all associated data.
*
* @version $Id: DataRefreshTask.java 525176 2007-04-03 15:21:33Z joakime $
*/
public class RepositoryTask
implements Task
{
- @Override
- public int hashCode()
- {
- final int prime = 31;
- int result = 1;
- result = prime * result + ( ( repositoryId == null ) ? 0 :
repositoryId.hashCode() );
- result = prime * result + ( ( resourceFile == null ) ? 0 :
resourceFile.hashCode() );
- return result;
- }
-
- @Override
- public boolean equals( Object obj )
- {
- if ( this == obj )
- return true;
- if ( obj == null )
- return false;
- if ( getClass() != obj.getClass() )
- return false;
- RepositoryTask other = (RepositoryTask) obj;
- if ( repositoryId == null )
- {
- if ( other.repositoryId != null )
- return false;
- }
- else if ( !repositoryId.equals( other.repositoryId ) )
- return false;
- if ( resourceFile == null )
- {
- if ( other.resourceFile != null )
- return false;
- }
- else if ( !resourceFile.equals( other.resourceFile ) )
- return false;
- return true;
- }
-
private String repositoryId;
-
+
private File resourceFile;
-
+
private boolean updateRelatedArtifacts;
-
+
private boolean scanAll;
-
+
public boolean isScanAll()
{
return scanAll;
@@ -128,4 +91,55 @@ public class RepositoryTask
return "RepositoryTask [repositoryId=" + repositoryId + ",
resourceFile=" + resourceFile + ", scanAll="
+ scanAll + ", updateRelatedArtifacts=" + updateRelatedArtifacts +
"]";
}
+
+ @Override
+ public int hashCode()
+ {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ( ( repositoryId == null ) ? 0 :
repositoryId.hashCode() );
+ result = prime * result + ( ( resourceFile == null ) ? 0 :
resourceFile.hashCode() );
+ return result;
+ }
+
+ @Override
+ public boolean equals( Object obj )
+ {
+ if ( this == obj )
+ {
+ return true;
+ }
+ if ( obj == null )
+ {
+ return false;
+ }
+ if ( getClass() != obj.getClass() )
+ {
+ return false;
+ }
+ RepositoryTask other = (RepositoryTask) obj;
+ if ( repositoryId == null )
+ {
+ if ( other.repositoryId != null )
+ {
+ return false;
+ }
+ }
+ else if ( !repositoryId.equals( other.repositoryId ) )
+ {
+ return false;
+ }
+ if ( resourceFile == null )
+ {
+ if ( other.resourceFile != null )
+ {
+ return false;
+ }
+ }
+ else if ( !resourceFile.equals( other.resourceFile ) )
+ {
+ return false;
+ }
+ return true;
+ }
}