| author | Shawn F. Cook | 2011-08-09 12:37:49 (EDT) |
|---|---|---|
| committer | Ryan D. Brooks | 2011-08-09 12:37:49 (EDT) |
| commit | 26f9aebb1400bb6db06b7745f22ecaed96966e17 (patch) (side-by-side diff) | |
| tree | b603fc8efb0b65e7767ea7ac17a94cbc2a67c31b | |
| parent | fb9f1f4a06bd51b7e3cd23a2b214d8340924742f (diff) | |
| download | org.eclipse.osee-26f9aebb1400bb6db06b7745f22ecaed96966e17.zip org.eclipse.osee-26f9aebb1400bb6db06b7745f22ecaed96966e17.tar.gz org.eclipse.osee-26f9aebb1400bb6db06b7745f22ecaed96966e17.tar.bz2 | |
refactor[bgz_354193]: Remove unread variables warnings
4 files changed, 11 insertions, 13 deletions
diff --git a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java index 9abb833..856370e 100644 --- a/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java +++ b/plugins/org.eclipse.osee.framework.server.admin/src/org/eclipse/osee/framework/server/admin/ServerAdminCommandProvider.java @@ -27,11 +27,11 @@ import org.eclipse.osee.framework.core.operation.MutexSchedulingRule; import org.eclipse.osee.framework.core.operation.OperationLogger; import org.eclipse.osee.framework.core.operation.Operations; import org.eclipse.osee.framework.database.operation.ConsolidateArtifactVersionTxOperation; +import org.eclipse.osee.framework.database.operation.ConsolidateRelationsTxOperation; +import org.eclipse.osee.framework.database.operation.FindInvalidUTF8CharsOperation; import org.eclipse.osee.framework.database.operation.ParseWindowsDirectoryListingOperation; -import org.eclipse.osee.framework.database.operation.PurgeTransactionOperation; import org.eclipse.osee.framework.database.operation.PruneWorkspaceOperation; -import org.eclipse.osee.framework.database.operation.FindInvalidUTF8CharsOperation; -import org.eclipse.osee.framework.database.operation.ConsolidateRelationsTxOperation; +import org.eclipse.osee.framework.database.operation.PurgeTransactionOperation; import org.eclipse.osee.framework.database.operation.PurgeUnusedBackingDataAndTransactions; import org.eclipse.osee.framework.jdk.core.util.Strings; import org.eclipse.osee.framework.server.admin.internal.Activator; @@ -164,7 +164,7 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(operation, false); } - + public Job _consolidate_relations(CommandInterpreter ci) { OperationLogger logger = new CommandInterpreterLogger(ci); @@ -172,7 +172,7 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(operation, false); } - + public Job _find_invalid_utf8(CommandInterpreter ci) { OperationLogger logger = new CommandInterpreterLogger(ci); @@ -182,7 +182,7 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(operation, false); } - + public Job _prune_workspace(CommandInterpreter ci) { OperationLogger logger = new CommandInterpreterLogger(ci); @@ -193,7 +193,6 @@ public class ServerAdminCommandProvider implements CommandProvider { //to be purged final ArrayList<String> args = new ArrayList<String>(); - boolean force = false; for (String arg = ci.nextArgument(); Strings.isValid(arg); arg = ci.nextArgument()) { args.add(arg); } @@ -215,7 +214,7 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(operation, false); } - + public Job _purge_attribute_type(CommandInterpreter ci) { OperationLogger logger = new CommandInterpreterLogger(ci); @@ -232,7 +231,7 @@ public class ServerAdminCommandProvider implements CommandProvider { return Operations.executeAsJob(operation, false); } - + public Job _purge_transactions(CommandInterpreter ci) { OperationLogger logger = new CommandInterpreterLogger(ci); diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/revision/DeletionTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/revision/DeletionTest.java index 651fddc..c82ca35 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/revision/DeletionTest.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/revision/DeletionTest.java @@ -25,14 +25,12 @@ import org.eclipse.osee.framework.core.exception.OseeDataStoreException; import org.eclipse.osee.framework.core.model.Branch; import org.eclipse.osee.framework.core.operation.IOperation; import org.eclipse.osee.framework.core.test.mocks.Asserts; -import org.eclipse.osee.framework.database.IOseeDatabaseServiceProvider; import org.eclipse.osee.framework.database.core.ConnectionHandler; import org.eclipse.osee.framework.database.core.IOseeStatement; import org.eclipse.osee.framework.logging.OseeLog; import org.eclipse.osee.framework.logging.SevereLoggingMonitor; import org.eclipse.osee.framework.skynet.core.artifact.Artifact; import org.eclipse.osee.framework.skynet.core.artifact.Attribute; -import org.eclipse.osee.framework.skynet.core.internal.Activator; import org.eclipse.osee.framework.skynet.core.relation.RelationLink; import org.eclipse.osee.framework.skynet.core.utility.PurgeTransactionOperationWithListener; import org.junit.Before; @@ -168,7 +166,6 @@ public class DeletionTest { //OK now lets delete the transaction and check for the same thing if (DELETE_TRANSACTION_TEST) { - IOseeDatabaseServiceProvider databaseProvider = Activator.getInstance(); IOperation operation = PurgeTransactionOperationWithListener.getPurgeTransactionOperation(true, deletionTransaction); Asserts.testOperation(operation, IStatus.OK); diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/AttributeFindReplaceDialog.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/AttributeFindReplaceDialog.java index 9e8bed4..69ebbbe 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/AttributeFindReplaceDialog.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/AttributeFindReplaceDialog.java @@ -167,7 +167,6 @@ public class AttributeFindReplaceDialog extends Dialog { @Override protected IStatus run(final IProgressMonitor monitor) { IStatus toReturn = Status.CANCEL_STATUS; - Branch branch = artifacts.get(0).getBranch(); try { monitor.beginTask("Find/Replace " + attributeType + " Attribute Value", artifacts.size()); diff --git a/plugins/org.eclipse.osee.support.dev.java/src/org/eclipse/osee/support/dev/java/JavaJdtTipsAndTricks.java b/plugins/org.eclipse.osee.support.dev.java/src/org/eclipse/osee/support/dev/java/JavaJdtTipsAndTricks.java index fae2055..efe9fdb 100644 --- a/plugins/org.eclipse.osee.support.dev.java/src/org/eclipse/osee/support/dev/java/JavaJdtTipsAndTricks.java +++ b/plugins/org.eclipse.osee.support.dev.java/src/org/eclipse/osee/support/dev/java/JavaJdtTipsAndTricks.java @@ -157,12 +157,14 @@ public class JavaJdtTipsAndTricks { // How: select "a ? 1: 2" below > Ctrl+1 > Replace conditional with if/else // JavaTip 25) Quick-Fix - if/else to conditional // How: perform previous java tip > select conditional below > Ctrl+1 > Replace with conditional + @SuppressWarnings("unused") int value; value = a ? 1 : 2; // JavaTip 26) Quick-Fix - Convert string to StringBuffer // How: select '"Hello " + name' below > Ctrl+1 > Use StringBuffer for concatenation String name = "world"; + @SuppressWarnings("unused") String str = "Hello " + name; // JavaTip 27) Quick-Fix - extract local @@ -209,6 +211,7 @@ public class JavaJdtTipsAndTricks { // JavaTip 33) Wrap strings // How: Select after word "very" > press Enter + @SuppressWarnings("unused") String str4 = "now is the time to very for all good men"; // JavaTip 34) Move lines up / down without cut/paste |

