Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Didn't use sun annotations anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Petschko committed Feb 14, 2021
1 parent 4884279 commit c984bfa
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/org/petschko/lib/File.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.lib;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
Expand Down
5 changes: 2 additions & 3 deletions src/org/petschko/lib/Functions.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package org.petschko.lib;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.AbstractButton;
import java.awt.Desktop;
import java.awt.event.ActionListener;
Expand Down
5 changes: 2 additions & 3 deletions src/org/petschko/lib/UserPref.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package org.petschko.lib;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/lib/gui/GUI_About.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.lib.gui;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.JButton;
import javax.swing.JComponent;
Expand Down
2 changes: 1 addition & 1 deletion src/org/petschko/lib/gui/JImageLabel.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.lib.gui;

import com.sun.istack.internal.NotNull;
import org.jetbrains.annotations.NotNull;
import org.petschko.lib.Image;

import javax.imageio.ImageIO;
Expand Down
2 changes: 1 addition & 1 deletion src/org/petschko/lib/gui/JLabelExtra.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.lib.gui;

import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.Nullable;

import javax.swing.JLabel;
import java.awt.Color;
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/lib/gui/notification/ErrorWindow.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.lib.gui.notification;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* Author: Peter Dragicevic [peter@petschko.org]
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/lib/gui/notification/InfoWindow.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.lib.gui.notification;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* Author: Peter Dragicevic [peter@petschko.org]
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/lib/gui/notification/NotificationWindow.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.lib.gui.notification;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.JOptionPane;
import java.awt.Component;
Expand Down
7 changes: 4 additions & 3 deletions src/org/petschko/rpgmakermv/decrypt/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* Authors-Website: http://petschko.org/
* Date: 11.12.2016
* Time: 21:24
* Update: -
* Version: 0.1.0
* Update: 04.05.2019
* Version: 0.1.1
*
* Notes: Config class
*/
class Config {
// Program Info
static final String version = "v0.1.3.1 (Hotfix) Alpha";
static final String versionNumber = "0.1.4.0";
static final String version = "v" + versionNumber + " Alpha";
static final String programName = "RPG-Maker MV Decrypter";
static final String projectPageURL = "https://github.com/Petschko/Java-RPG-Maker-MV-Decrypter";
static final String projectBugReportURL = "https://github.com/Petschko/Java-RPG-Maker-MV-Decrypter/issues";
Expand Down
5 changes: 4 additions & 1 deletion src/org/petschko/rpgmakermv/decrypt/Decrypter.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import org.jetbrains.annotations.NotNull;
import org.json.JSONException;
import org.json.JSONObject;
import org.petschko.lib.File;
Expand Down Expand Up @@ -359,10 +359,13 @@ private static byte[] getByteArray(byte[] byteArray, int startPos) {
private static String realExtByFakeExt(@NotNull String fakeExt) {
switch(fakeExt.toLowerCase()) {
case "rpgmvp":
case "png_":
return "png";
case "rpgmvm":
case "m4a_":
return "m4a";
case "rpgmvo":
case "ogg_":
return "ogg";
default:
return "unknown";
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/rpgmakermv/decrypt/Finder.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.petschko.lib.Const;
import org.petschko.lib.File;

Expand Down
2 changes: 1 addition & 1 deletion src/org/petschko/rpgmakermv/decrypt/GUI.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import org.jetbrains.annotations.NotNull;
import org.json.JSONException;
import org.petschko.lib.Const;
import org.petschko.lib.File;
Expand Down
4 changes: 2 additions & 2 deletions src/org/petschko/rpgmakermv/decrypt/GUI_About.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.petschko.lib.Const;
import org.petschko.lib.gui.JImageLabel;
import org.petschko.lib.gui.JLabelExtra;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import org.jetbrains.annotations.NotNull;
import org.petschko.lib.File;
import org.petschko.lib.Functions;
import org.petschko.lib.gui.notification.ErrorWindow;
Expand Down
2 changes: 1 addition & 1 deletion src/org/petschko/rpgmakermv/decrypt/Preferences.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.Nullable;
import org.jetbrains.annotations.Nullable;
import org.petschko.lib.UserPref;

import java.util.Properties;
Expand Down
2 changes: 1 addition & 1 deletion src/org/petschko/rpgmakermv/decrypt/RPGProject.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.petschko.rpgmakermv.decrypt;

import com.sun.istack.internal.NotNull;
import org.jetbrains.annotations.NotNull;
import org.json.JSONException;
import org.petschko.lib.File;
import org.petschko.lib.exceptions.PathException;
Expand Down

0 comments on commit c984bfa

Please sign in to comment.