diff options
33 files changed, 38 insertions, 103 deletions
diff --git a/cli_ure/qa/climaker/ClimakerTestCase.java b/cli_ure/qa/climaker/ClimakerTestCase.java index c33ddd70d8f3..ea78b2b7d071 100644 --- a/cli_ure/qa/climaker/ClimakerTestCase.java +++ b/cli_ure/qa/climaker/ClimakerTestCase.java @@ -43,8 +43,8 @@ public class ClimakerTestCase extends ComplexTestCase try{ proc = Runtime.getRuntime().exec(testProgram); - Reader outReader = new Reader(proc.getInputStream()); - Reader errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); } catch(Exception e) { diff --git a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java index 318a716fc86f..4999463247e4 100644 --- a/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java +++ b/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java @@ -125,12 +125,11 @@ public class InputStreamToXInputStreamAdapter implements XInputStream { public void skipBytes(int n) throws com.sun.star.io.IOException { - int avail; int tmpLongVal = n; int tmpIntVal; try { - avail = iIn.available(); + iIn.available(); } catch (IOException e) { throw new com.sun.star.io.IOException(e.toString()); } diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java index e8bef98a427c..331c37618b1c 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java @@ -167,14 +167,13 @@ public class MultiTypeInterfaceContainer_Test boolean r[]= new boolean[50]; int i= 0; - int ci= 0; - ci= cont.addInterface(new Type(XInterface.class), obj1); - ci= cont.addInterface(new Type(XInterface.class), obj2); - ci= cont.addInterface(new Type(XInterface.class), obj3); - ci= cont.addInterface(new Type(XWeak.class), obj1); - ci= cont.addInterface(new Type(XWeak.class), obj2); - ci= cont.addInterface(null, obj1); - ci= cont.addInterface(new Type(XTypeProvider.class), null); + cont.addInterface(new Type(XInterface.class), obj1); + cont.addInterface(new Type(XInterface.class), obj2); + cont.addInterface(new Type(XInterface.class), obj3); + cont.addInterface(new Type(XWeak.class), obj1); + cont.addInterface(new Type(XWeak.class), obj2); + cont.addInterface(null, obj1); + cont.addInterface(new Type(XTypeProvider.class), null); InterfaceContainer icont= null; icont= cont.getContainer( new Type(XTypeProvider.class)); @@ -239,14 +238,13 @@ public class MultiTypeInterfaceContainer_Test cont.clear(); Type[] types= cont.getContainedTypes(); r[i++]= types.length == 0; - int ci; - ci= cont.addInterface(new Type(XInterface.class), obj1); - ci= cont.addInterface(new Type(XInterface.class), obj2); - ci= cont.addInterface(new Type(XInterface.class), obj3); - ci= cont.addInterface(new Type(XWeak.class), obj1); - ci= cont.addInterface(new Type(XWeak.class), obj2); - ci= cont.addInterface(null, obj1); - ci= cont.addInterface(new Type(XTypeProvider.class), null); + cont.addInterface(new Type(XInterface.class), obj1); + cont.addInterface(new Type(XInterface.class), obj2); + cont.addInterface(new Type(XInterface.class), obj3); + cont.addInterface(new Type(XWeak.class), obj1); + cont.addInterface(new Type(XWeak.class), obj2); + cont.addInterface(null, obj1); + cont.addInterface(new Type(XTypeProvider.class), null); types= cont.getContainedTypes(); r[i++]= types.length == 3; cont.clear(); diff --git a/linguistic/qa/complex/linguistic/HangulHanjaConversion.java b/linguistic/qa/complex/linguistic/HangulHanjaConversion.java index 85274a06b48d..aae75adeb04f 100644 --- a/linguistic/qa/complex/linguistic/HangulHanjaConversion.java +++ b/linguistic/qa/complex/linguistic/HangulHanjaConversion.java @@ -114,7 +114,6 @@ XComponent xDoc = DesktopTools.loadDoc(xMSF, FileToLoad, XSpreadsheet xSheet = getSheet(xDoc); boolean done = false; int counter = 0; - int numberOfWords = 0; String wordToCheck = ""; String expectedConversion = ""; @@ -124,8 +123,6 @@ XComponent xDoc = DesktopTools.loadDoc(xMSF, FileToLoad, counter++; if (!done) { - numberOfWords++; - try { xDict.addEntry(HangulHanja[0], HangulHanja[1]); wordToCheck += HangulHanja[0]; diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java index 4192f866a6f2..617ae104e207 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java +++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java @@ -235,7 +235,6 @@ public class ChartInCalc try { // determine the maximum value of the first series - int nMaxIndex = 0; XChartDataArray aDataArray = UnoRuntime.queryInterface( XChartDataArray.class, maChartDocument.getData()); @@ -248,7 +247,6 @@ public class ChartInCalc if( aData[ i ][ 1 ] > fMax ) { fMax = aData[ i ][ 1 ]; - nMaxIndex = i; } } diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java index a7bd3b9b1f35..a063a0b9bed6 100644 --- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java +++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java @@ -154,14 +154,13 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob } // Analyze the set of shared config data. - java.lang.String sAlias = null; if (lGenericConfig!=null) { c = lGenericConfig.length; for (int i=0; i<c; ++i) { if (lGenericConfig[i].Name.equals("Alias")) - sAlias = com.sun.star.uno.AnyConverter.toString(lGenericConfig[i].Value); + com.sun.star.uno.AnyConverter.toString(lGenericConfig[i].Value); } } diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java index c43b4743b290..055659a04204 100644 --- a/odk/examples/DevelopersGuide/GUI/MessageBox.java +++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java @@ -215,7 +215,6 @@ public class MessageBox { public static int getRedColorShare(int _nColor) { int nRed = _nColor/65536; - int nRedModulo = _nColor % 65536; return nRed; } diff --git a/odk/examples/java/Storage/TestHelper.java b/odk/examples/java/Storage/TestHelper.java index 02a1bad0893a..9fa2faff086d 100644 --- a/odk/examples/java/Storage/TestHelper.java +++ b/odk/examples/java/Storage/TestHelper.java @@ -500,7 +500,7 @@ public class TestHelper { try { - Object oSubStream = xParentStorage.openStreamElement( sName, ElementModes.READ ); + xParentStorage.openStreamElement( sName, ElementModes.READ ); Error( "Encrypted stream '" + sName + "' was opened without password!" ); return false; } diff --git a/reportdesign/qa/complex/reportdesign/ReportDesignerTest.java b/reportdesign/qa/complex/reportdesign/ReportDesignerTest.java index ba2dd9b6db6b..fc1b7bf0a8e8 100644 --- a/reportdesign/qa/complex/reportdesign/ReportDesignerTest.java +++ b/reportdesign/qa/complex/reportdesign/ReportDesignerTest.java @@ -132,8 +132,6 @@ public class ReportDesignerTest @Before public void before() { System.out.println("before"); - - int dummy = 0; } @After public void after() @@ -292,14 +290,13 @@ public class ReportDesignerTest String sDBConnection = ""; // (String)param.get( convwatch.PropertyName.DB_CONNECTION_STRING ); System.out.println("DBConnection: " + sDBConnection); DB.init(sDBConnection); - String sDestinationVersion = m_sUPDMinor; - String sDestinationName = ""; - String sDestinationCreatorType = ""; - String sDocumentPoolDir = getOutputPath(_nType); - String sDocumentPoolName = getDocumentPoolName(_nType); - String sSpecial = ""; - - String sFixRefSubDirectory = "ReportDesign_qa_complex_" + getFileFormat(_nType); +// String sDestinationVersion = m_sUPDMinor; +// String sDestinationName = ""; +// String sDestinationCreatorType = ""; +// String sDocumentPoolDir = getOutputPath(_nType); +// String sDocumentPoolName = getDocumentPoolName(_nType); +// String sSpecial = ""; +// String sFixRefSubDirectory = "ReportDesign_qa_complex_" + getFileFormat(_nType); // DB.insertinto_documentcompare(sFixRefSubDirectory, "", "fixref", // sDestinationVersion, sDestinationName, sDestinationCreatorType, // sDocumentPoolDir, sDocumentPoolName, m_sMailAddress, diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java index 1824dc5138f1..eee6d1c47ce0 100644 --- a/sc/qa/complex/calcPreview/ViewForwarder.java +++ b/sc/qa/complex/calcPreview/ViewForwarder.java @@ -877,8 +877,6 @@ public class ViewForwarder { } - XAccessible parent = null; - try { System.out.println("Count: " +AccessibilityTools.getAccessibleObjectForRole (xRoot, AccessibleRole.TABLE, "").getAccessibleChildCount()); diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java index 5377dacd94c1..e59dad95436e 100644 --- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java +++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java @@ -99,8 +99,6 @@ public class UCBStreamHandler extends URLStreamHandler { String sUrl = url.toString(); if ( !( sUrl.lastIndexOf(separator) == -1) ) { String path = sUrl.substring(0, sUrl.lastIndexOf(separator)); - String file = sUrl.substring( - sUrl.lastIndexOf(separator) + separator.length()); if ( m_xSimpleFileAccess.isReadOnly( path ) ) { diff --git a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java index d1c1c6d46c2b..f5694477725e 100644 --- a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java +++ b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java @@ -70,10 +70,9 @@ public class XInputStreamImpl implements XInputStream public void skipBytes( /*IN*/int nBytesToSkip ) throws com.sun.star.io.NotConnectedException, com.sun.star.io.BufferSizeExceededException, com.sun.star.io.IOException { - long bytesSkipped = 0; try { - bytesSkipped = is.skip( nBytesToSkip ); + is.skip( nBytesToSkip ); } catch ( IOException e ) { diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java index d70a8b4323f4..a752648f999f 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java @@ -201,7 +201,6 @@ class GlyphGutter extends JComponent { for (int i = startLine; i < endLine; i++) { String text; text = Integer.toString(i + 1) + " "; - int w = metrics.stringWidth(text); int y = i * h; g.setColor(Color.blue); g.drawString(text, 0, y + ascent); diff --git a/scripting/workben/ifc/scripting/_XScriptInfo.java b/scripting/workben/ifc/scripting/_XScriptInfo.java index 4e521817945f..ed08e44a3655 100644 --- a/scripting/workben/ifc/scripting/_XScriptInfo.java +++ b/scripting/workben/ifc/scripting/_XScriptInfo.java @@ -161,7 +161,6 @@ public class _XScriptInfo extends MultiMethodTest { } public void _getLanguageProperties() { - boolean result = true; Collection c = (Collection) tEnv.getObjRelation("_getLanguageProperties"); @@ -191,12 +190,8 @@ public class _XScriptInfo extends MultiMethodTest { } log.println("expected: " + expected + ", output: " + output); - result &= output.equals(expected); } } - else { - result = false; - } tRes.tested("getLanguageProperties()", true); } diff --git a/scripting/workben/installer/Final.java b/scripting/workben/installer/Final.java index 01c0cec23976..e81fa1233b7d 100644 --- a/scripting/workben/installer/Final.java +++ b/scripting/workben/installer/Final.java @@ -78,9 +78,7 @@ public class Final extends javax.swing.JPanel implements ActionListener, Install nav.enableCancel(false); ArrayList<?> locations = InstallWizard.getLocations(); // Returned 1 - String progpath=null; String path=null; - String classespath=null; for (int i =0;i<locations.size();i++){ path= (String)locations.get(i); xud = new XmlUpdater(path, statusLine,progressBar,InstallWizard.bNetworkInstall,InstallWizard.bBindingsInstall); diff --git a/scripting/workben/installer/InstUtil.java b/scripting/workben/installer/InstUtil.java index 4e8563c722ea..b6d0f64f4338 100644 --- a/scripting/workben/installer/InstUtil.java +++ b/scripting/workben/installer/InstUtil.java @@ -88,8 +88,7 @@ public class InstUtil { for ( int index = 0; index < supportedVersions.length; index++ ) { String key = supportedVersions[ index ]; - String path = null; - if ( ( path = installs.getProperty(key) ) != null ) + if ( installs.getProperty(key) != null ) { // at least one supported version for netbeans present, so return; return true; @@ -123,7 +122,6 @@ public class InstUtil { public static Properties getNetbeansLocation() throws IOException { - File theFile = null; Properties results = new Properties(); StringBuffer str = new StringBuffer(); @@ -134,15 +132,11 @@ public class InstUtil { String os = System.getProperty("os.name"); if (os.indexOf("Windows") != -1) { - //theFile = findVersionFile(new File(str.toString())); thePath.append(".netbeans"); - //theFile = new File(thePath.toString()); } else if (os.indexOf("SunOS") != -1) { thePath.append(".netbeans"); - //theFile = new File(thePath.toString()); } else if (os.indexOf("Linux") != -1) { thePath.append(".netbeans"); - //theFile = new File(thePath.toString()); } if ( thePath.toString().indexOf( ".netbeans" ) == -1 ) @@ -183,7 +177,6 @@ public class InstUtil { str.append(File.separator); StringBuffer thePath = new StringBuffer(str.toString()); - String os = System.getProperty("os.name"); thePath.append(".jedit"); File jeditLogFile = new File( thePath.toString() + File.separator + "activity.log" ); diff --git a/stoc/test/javavm/testapplet/TestApplet.java b/stoc/test/javavm/testapplet/TestApplet.java index d5484e372c7f..6d6176076df9 100644 --- a/stoc/test/javavm/testapplet/TestApplet.java +++ b/stoc/test/javavm/testapplet/TestApplet.java @@ -45,10 +45,10 @@ public class TestApplet extends java.applet.Applet { // local connection URL url= new URL("http://localhost:8080/index.html"); - InputStream is= url.openStream(); + url.openStream(); // remote connection url= new URL("http://www.w3.org/index.html"); - is= url.openStream(); + url.openStream(); }catch( MalformedURLException mue) { }catch( IOException e) { String s= e.getMessage(); diff --git a/stoc/test/javavm/testcomponent/TestComponent.java b/stoc/test/javavm/testcomponent/TestComponent.java index 81361b27d538..958037eac0c9 100644 --- a/stoc/test/javavm/testcomponent/TestComponent.java +++ b/stoc/test/javavm/testcomponent/TestComponent.java @@ -62,18 +62,7 @@ public class TestComponent implements XServiceInfo, XTypeProvider // XServiceName public String getImplementationName( ) { - String a= "the functions are for debugging"; - String prop= System.getProperty("ftp.proxyHost"); - prop= System.getProperty("ftp.proxyPort"); - prop= System.getProperty("http.proxyHost"); - prop= System.getProperty("http.proxyPort"); - prop= System.getProperty("ftp.nonProxyHosts"); - prop= System.getProperty("http.nonProxyHosts"); - prop= System.getProperty("socksProxyHost"); - prop= System.getProperty("socksProxyPort"); - - prop= System.getProperty("stardiv.security.disableSecurity"); - prop= System.getProperty("appletviewer.security.mode"); + // the functions are for debugging // Test security settings File f= new File("c:/temp/javasecurity.txt"); @@ -82,10 +71,10 @@ public class TestComponent implements XServiceInfo, XTypeProvider // local connection URL url= new URL("http://localhost:8080/index.html"); - InputStream is= url.openStream(); + url.openStream(); // remote connection url= new URL("http://www.w3.org/index.html"); - is= url.openStream(); + url.openStream(); }catch( MalformedURLException mue) { }catch( IOException e) { String s= e.getMessage(); diff --git a/testtools/com/sun/star/comp/bridge/TestComponentMain.java b/testtools/com/sun/star/comp/bridge/TestComponentMain.java index 4507478826fb..bcb5d8f58e53 100644 --- a/testtools/com/sun/star/comp/bridge/TestComponentMain.java +++ b/testtools/com/sun/star/comp/bridge/TestComponentMain.java @@ -71,7 +71,6 @@ public class TestComponentMain String conDcp = null; String protDcp = null; - String rootOid = null; String dcp = args[0]; boolean singleaccept = args[1].equals("singleaccept"); @@ -88,8 +87,6 @@ public class TestComponentMain protDcp = dcp.substring(0, index).trim(); dcp = dcp.substring(index + 1).trim(); - rootOid = dcp.trim().trim(); - XComponentContext ctx = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext( null ); XMultiComponentFactory smgr = ctx.getServiceManager(); XMultiServiceFactory oldsmgr = diff --git a/testtools/qa/cli/CLITest.java b/testtools/qa/cli/CLITest.java index 9567e1ac408f..40d2ba0d265a 100644 --- a/testtools/qa/cli/CLITest.java +++ b/testtools/qa/cli/CLITest.java @@ -47,13 +47,11 @@ public class CLITest extends ComplexTestCase String[] cmdarray = new String[] {testProgram, arg1}; Process proc = null; - Reader outReader; - Reader errReader; try{ proc = Runtime.getRuntime().exec(cmdarray); - outReader = new Reader(proc.getInputStream()); - errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); } diff --git a/testtools/qa/cliversioning/VersionTestCase.java b/testtools/qa/cliversioning/VersionTestCase.java index 93b464fcc069..7ada72145a60 100644 --- a/testtools/qa/cliversioning/VersionTestCase.java +++ b/testtools/qa/cliversioning/VersionTestCase.java @@ -55,8 +55,8 @@ public class VersionTestCase extends ComplexTestCase Process proc = null; proc = Runtime.getRuntime().exec(testProgram, arEnv); - Reader outReader = new Reader(proc.getInputStream()); - Reader errReader = new Reader(proc.getErrorStream()); + new Reader(proc.getInputStream()); + new Reader(proc.getErrorStream()); proc.waitFor(); retVal = proc.exitValue(); } catch(Exception e) diff --git a/wizards/com/sun/star/wizards/common/Configuration.java b/wizards/com/sun/star/wizards/common/Configuration.java index 74e73e7ed33b..16002b921105 100644 --- a/wizards/com/sun/star/wizards/common/Configuration.java +++ b/wizards/com/sun/star/wizards/common/Configuration.java @@ -205,7 +205,6 @@ public abstract class Configuration String sLocale = PropertyNames.EMPTY_STRING; try { - Locale aLocLocale = new Locale(); Object oMasterKey = getConfigurationRoot(xMSF, root, false); sLocale = (String) Helper.getUnoObjectbyName(oMasterKey, key); } @@ -326,7 +325,6 @@ public abstract class Configuration public static String[] getNodeDisplayNames(XNameAccess _xNameAccessNode) { - String[] snames = null; return getNodeChildNames(_xNameAccessNode, PropertyNames.PROPERTY_NAME); } diff --git a/wizards/com/sun/star/wizards/form/FormConfiguration.java b/wizards/com/sun/star/wizards/form/FormConfiguration.java index 230ca59bf6b5..52ce66cfe113 100644 --- a/wizards/com/sun/star/wizards/form/FormConfiguration.java +++ b/wizards/com/sun/star/wizards/form/FormConfiguration.java @@ -153,7 +153,6 @@ public class FormConfiguration public void toggleSteps() { - boolean bDoEnableFollowingSteps; if (chkcreateSubForm.getState() == 1) { if (optOnExistingRelation.getState()) diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java index 5001dd04fb64..f082d8fc5d3a 100644 --- a/wizards/com/sun/star/wizards/query/QueryWizard.java +++ b/wizards/com/sun/star/wizards/query/QueryWizard.java @@ -409,7 +409,6 @@ public class QueryWizard extends DatabaseObjectWizard { String sID = JavaTools.ArrayoutofString(sIncSuffix, "_")[1]; ID = Integer.parseInt(sID); - int a = 0; } } } diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java index 9ac60be6c1c7..b0f3eb078347 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java +++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java @@ -211,7 +211,6 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme boolean bgetConnection; if (oDBForm != null) { - String sMsg = sMsgHiddenControlMissing + (char) 13 + sMsgEndAutopilot; XNameAccess xNamedForm = UnoRuntime.queryInterface( XNameAccess.class, oDBForm ); getRecordParser().Command = getDoc().oFormHandler.getValueofHiddenControl(xNamedForm, PropertyNames.COMMAND); String sCommandType = getDoc().oFormHandler.getValueofHiddenControl(xNamedForm, PropertyNames.COMMAND_TYPE); diff --git a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java index 7bce85cc5e6d..5273fa0a7fdc 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java +++ b/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java @@ -163,7 +163,6 @@ public class ReportBuilderImplementation extends ReportImplementationHelper } catch (com.sun.star.uno.Exception e) { - int dummy = 0; } } @@ -175,7 +174,6 @@ public class ReportBuilderImplementation extends ReportImplementationHelper } catch (com.sun.star.uno.Exception e) { - int dummy = 0; } } @@ -201,7 +199,6 @@ public class ReportBuilderImplementation extends ReportImplementationHelper } catch (com.sun.star.uno.Exception e) { - int dummy = 0; } } diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java b/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java index fc15f431346a..65fed5b1c9f6 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java @@ -178,7 +178,6 @@ public class DesignTemplate m_aDetailTextField = SectionTextField.create(aFormattedField); } } - int dummy = 0; } catch (com.sun.star.lang.IndexOutOfBoundsException ex) { diff --git a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java index 9b4281297427..d7ac335dfb6b 100644 --- a/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java +++ b/wizards/com/sun/star/wizards/table/PrimaryKeyHandler.java @@ -281,7 +281,6 @@ public class PrimaryKeyHandler implements XFieldSelectionListener private boolean isAutoIncrementatable(String _fieldname) { - boolean bisAutoIncrementable = false; try { XPropertySet xColPropertySet = curTableDescriptor.getByName(_fieldname); diff --git a/wizards/com/sun/star/wizards/text/TextTableHandler.java b/wizards/com/sun/star/wizards/text/TextTableHandler.java index 5b926145b0b7..4f742ee5ac47 100644 --- a/wizards/com/sun/star/wizards/text/TextTableHandler.java +++ b/wizards/com/sun/star/wizards/text/TextTableHandler.java @@ -209,7 +209,6 @@ public class TextTableHandler public static BreakType resetBreakTypeofTextTable(Object oTextTable) { - BreakType CorrBreakValue = null; BreakType BreakValue = (BreakType) com.sun.star.wizards.common.Helper.getUnoStructValue(oTextTable, "BreakType"); Helper.setUnoPropertyValue(oTextTable, "BreakType", BreakType.NONE); return BreakType.NONE; diff --git a/wizards/com/sun/star/wizards/ui/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java index c14ce73fa1f6..f80d601e6384 100644 --- a/wizards/com/sun/star/wizards/ui/ButtonList.java +++ b/wizards/com/sun/star/wizards/ui/ButtonList.java @@ -282,7 +282,6 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener setVisible(m_aButtons[i], false); } } - boolean focusable = true; for (int i = 0; i < m_aButtons.length; i++) { Object[] oResources = renderer.getImageUrls(getObjectFor(i)); @@ -302,7 +301,6 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener { setVisible(m_aButtons[i], true); } - focusable = false; } } } diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.java b/wizards/com/sun/star/wizards/ui/ControlScroller.java index 8210cce41c1f..7c2193fb6e70 100644 --- a/wizards/com/sun/star/wizards/ui/ControlScroller.java +++ b/wizards/com/sun/star/wizards/ui/ControlScroller.java @@ -166,7 +166,6 @@ public abstract class ControlScroller protected void fillupControls(boolean binitialize) { - PropertyValue[] oldproperties; for (int a = 0; a < this.nblockincrement; a++) { if (a < ncurfieldcount) diff --git a/wizards/com/sun/star/wizards/ui/FieldSelection.java b/wizards/com/sun/star/wizards/ui/FieldSelection.java index 46845aa6098e..db28aaa78331 100644 --- a/wizards/com/sun/star/wizards/ui/FieldSelection.java +++ b/wizards/com/sun/star/wizards/ui/FieldSelection.java @@ -573,8 +573,6 @@ public class FieldSelection { iFieldSelected = xFieldsListBox.getSelectedItemPos(); iSelFieldSelected = xSelectedFieldsListBox.getSelectedItemPos(); - short[] SourceSelList = new short[xFieldsListBox.getSelectedItemsPos().length]; - SourceSelList = xFieldsListBox.getSelectedItemsPos(); xSelectedFieldsListBox.addItems(SelFieldItems, xSelectedFieldsListBox.getItemCount()); CurUnoDialog.removeSelectedItems(xFieldsListBox); xSelectedFieldsListBox.selectItemPos((short) 0, xSelectedFieldsListBox.getSelectedItems().length > 0); diff --git a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java index b191b5c1ee02..4280fb425381 100644 --- a/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java +++ b/xmlsecurity/test_docs/tools/httpserv/src/httpserv/Main.java @@ -140,7 +140,7 @@ class MyHandler implements HttpHandler { //Read the file into a byte array byte[] data = new byte[(int) fileRequest.length()]; FileInputStream fr = new FileInputStream(fileRequest); - int count = fr.read(data); + fr.read(data); fr.close(); //set the Content-type header |