Skip to content

Commit

Permalink
Stop importing java.sql.Date
Browse files Browse the repository at this point in the history
Just hand format the date using ISO 8601.

Fixes #127
  • Loading branch information
philburk committed Nov 17, 2024
1 parent 9ae60c2 commit 490d0b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/main/java/com/jsyn/JSyn.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package com.jsyn;

import java.sql.Date;
import java.util.GregorianCalendar;

import com.jsyn.devices.AudioDeviceManager;
import com.jsyn.engine.SynthesisEngine;

Expand Down Expand Up @@ -58,15 +55,15 @@ public class JSyn {
private final static int VERSION_MINOR = 1;
private final static int VERSION_REVISION = 1;
public final static int BUILD_NUMBER = 466;
private final static long BUILD_TIME = new GregorianCalendar(2023,
GregorianCalendar.AUGUST, 28).getTime().getTime();
private final static String BUILD_DATE = "2023-08-28";

// These are built from the updated values.
public final static String VERSION = VERSION_MAJOR + "." + VERSION_MINOR + "."
+ VERSION_REVISION;
public final static int VERSION_CODE = (VERSION_MAJOR << 16) + (VERSION_MINOR << 8)
+ VERSION_REVISION;
public final static String VERSION_TEXT = "V" + VERSION + " (build " + BUILD_NUMBER + ", "
+ (new Date(BUILD_TIME)) + ")";
+ BUILD_DATE + ")";

public static Synthesizer createSynthesizer() {
return new SynthesisEngine();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/jsyn/apps/AboutJSyn.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public void init() {
JPanel infoPanel = new JPanel();
infoPanel.setLayout(new GridLayout(0, 1));
infoPanel.add(new JLabel("About: " + synth, SwingConstants.CENTER));
infoPanel.add(new JLabel("From: http://www.softsynth.com/", SwingConstants.CENTER));
infoPanel.add(new JLabel("(C) 1997-2011 Mobileer Inc", SwingConstants.CENTER));
infoPanel.add(new JLabel("From: https://www.softsynth.com/", SwingConstants.CENTER));
infoPanel.add(new JLabel("(C) 1997 Mobileer Inc", SwingConstants.CENTER));
add(infoPanel);

// Set the minimum, current and maximum values for the port.
Expand Down

0 comments on commit 490d0b5

Please sign in to comment.