mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-0: Fixing @Override warnings
This commit is contained in:
parent
d4120b4b4d
commit
a6cd5b5dbc
449 changed files with 2348 additions and 1276 deletions
|
@ -1,13 +1,12 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -19,6 +18,7 @@ package ghidra;
|
|||
import ghidra.framework.ModuleInitializer;
|
||||
|
||||
public class ProjectInitializer implements ModuleInitializer {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
// Register "ghidra" URL protocol Handler
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -46,7 +45,8 @@ public class ZoomedImagePainter implements GGlassPanePainter {
|
|||
this.image = image;
|
||||
}
|
||||
|
||||
public void paint( GGlassPane glassPane, Graphics g ) {
|
||||
@Override
|
||||
public void paint( GGlassPane glassPane, Graphics g ) {
|
||||
if ( image == null || targetBounds == null ) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -64,6 +63,7 @@ public class VersionInfoTransferable implements Transferable, ClipboardOwner {
|
|||
/* (non-Javadoc)
|
||||
* @see java.awt.datatransfer.Transferable#getTransferDataFlavors()
|
||||
*/
|
||||
@Override
|
||||
public DataFlavor[] getTransferDataFlavors() {
|
||||
return flavors;
|
||||
}
|
||||
|
@ -71,6 +71,7 @@ public class VersionInfoTransferable implements Transferable, ClipboardOwner {
|
|||
/* (non-Javadoc)
|
||||
* @see java.awt.datatransfer.Transferable#isDataFlavorSupported(java.awt.datatransfer.DataFlavor)
|
||||
*/
|
||||
@Override
|
||||
public boolean isDataFlavorSupported(DataFlavor flavor) {
|
||||
return flavorList.contains(flavor);
|
||||
}
|
||||
|
@ -78,6 +79,7 @@ public class VersionInfoTransferable implements Transferable, ClipboardOwner {
|
|||
/* (non-Javadoc)
|
||||
* @see java.awt.datatransfer.Transferable#getTransferData(java.awt.datatransfer.DataFlavor)
|
||||
*/
|
||||
@Override
|
||||
public Object getTransferData(DataFlavor flavor)
|
||||
throws UnsupportedFlavorException, IOException {
|
||||
if (flavor.equals(localVersionInfoFlavor)) {
|
||||
|
@ -89,6 +91,7 @@ public class VersionInfoTransferable implements Transferable, ClipboardOwner {
|
|||
/* (non-Javadoc)
|
||||
* @see java.awt.datatransfer.ClipboardOwner#lostOwnership(java.awt.datatransfer.Clipboard, java.awt.datatransfer.Transferable)
|
||||
*/
|
||||
@Override
|
||||
public void lostOwnership(Clipboard clipboard, Transferable contents) {
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -37,7 +36,8 @@ class OpenFileDropHandlerFactory implements DropTargetFactory {
|
|||
|
||||
}
|
||||
|
||||
public DropTargetHandler createDropTargetHandler( Component component ) {
|
||||
@Override
|
||||
public DropTargetHandler createDropTargetHandler( Component component ) {
|
||||
return new FileOpenDropHandler( tool, component );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue