GP-0: Fixing @Override warnings

This commit is contained in:
Ryan Kurtz 2025-05-29 06:16:20 -04:00
parent d4120b4b4d
commit a6cd5b5dbc
449 changed files with 2348 additions and 1276 deletions

View file

@ -4,9 +4,9 @@
* 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.
@ -41,6 +41,7 @@ public abstract class ConvertedRecordIterator implements RecordIterator {
/**
* @see db.RecordIterator#delete()
*/
@Override
public boolean delete() throws IOException {
if (!deleteAllowed) {
throw new UnsupportedOperationException("record delete not allowed");
@ -51,6 +52,7 @@ public abstract class ConvertedRecordIterator implements RecordIterator {
/**
* @see db.RecordIterator#hasNext()
*/
@Override
public boolean hasNext() throws IOException {
return originalIterator.hasNext();
}
@ -58,6 +60,7 @@ public abstract class ConvertedRecordIterator implements RecordIterator {
/**
* @see db.RecordIterator#hasPrevious()
*/
@Override
public boolean hasPrevious() throws IOException {
return originalIterator.hasPrevious();
}
@ -65,6 +68,7 @@ public abstract class ConvertedRecordIterator implements RecordIterator {
/**
* @see db.RecordIterator#next()
*/
@Override
public DBRecord next() throws IOException {
return convertRecord(originalIterator.next());
}
@ -72,6 +76,7 @@ public abstract class ConvertedRecordIterator implements RecordIterator {
/**
* @see db.RecordIterator#previous()
*/
@Override
public DBRecord previous() throws IOException {
return convertRecord(originalIterator.previous());
}

View file

@ -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.
@ -20,7 +19,8 @@ import ghidra.framework.ModuleInitializer;
import db.buffers.BufferMgr;
public class DBInitializer implements ModuleInitializer {
public void run() {
@Override
public void run() {
BufferMgr.cleanupOldCacheFiles();

View file

@ -4,9 +4,9 @@
* 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,30 +37,37 @@ public class DummyBufferFileMgr implements BufferFileManager {
this.enableChangeFiles = enableChangeFiles;
}
@Override
public int getCurrentVersion() {
return cur;
}
@Override
public File getBufferFile(int version) {
return new File(dir, name + version + ".bf" );
}
@Override
public File getVersionFile(int version) {
if (enableVersionFiles) {
return new File(dir, name + version + ".vf" );
}
return null;
}
@Override
public File getChangeDataFile(int version) {
if (enableChangeFiles) {
return new File(dir, name + version + ".cf" );
}
return null;
}
@Override
public File getChangeMapFile() {
return null;
}
@Override
public void versionCreated(int version, String comment, long checkinId) {
cur = version;
}
@Override
public void updateEnded(long checkinId) {
}
}