Permalink
Browse files

Class names should, again, be CamelCase

  • Loading branch information...
1 parent 897dfa1 commit 514e32b4a56ff18e5c070d1fb8e1b86060e375ea @retiman committed Sep 2, 2010
Showing with 83 additions and 81 deletions.
  1. +10 −8 src/main/java/ecm/{ecm.java → ECM.java}
  2. +73 −73 src/main/java/ecm/Siqs.java
@@ -19,7 +19,7 @@
import java.net.*;
import java.io.*;
-public class ecm extends Applet implements Runnable
+public class ECM extends Applet implements Runnable
{
static final long serialVersionUID = 20L;
static final boolean KARATSUBA_ENABLED = false;
@@ -483,7 +483,7 @@ public static void main(final String args[])
}
System.out.println("factor="+a+", time="+(System.currentTimeMillis()-time)+" msec");
- final ecm ecm1 = new ecm();
+ final ECM ecm1 = new ECM();
ecm1.init();
ecm1.StartFactorExprBatch("-991", 1);
// ecm1.StartFactorExprBatch("10^59+213", 0);
@@ -525,7 +525,7 @@ public static void main(final String args[])
else
{
Frame frame = new Frame("Integer factorization using ECM/SIQS");
- ecm ecm1 = new ecm();
+ ECM ecm1 = new ECM();
frame.addWindowListener(new PanelWindowListener());
frame.setLayout(new BorderLayout());
frame.add("Center", ecm1);
@@ -7858,9 +7858,9 @@ public String resultBatch()
class Command implements ActionListener
{
int id;
- ecm appletEcm;
+ ECM appletEcm;
- public Command(int id, ecm appletEcm)
+ public Command(int id, ECM appletEcm)
{
this.id = id;
this.appletEcm = appletEcm;
@@ -7955,12 +7955,13 @@ public void actionPerformed(ActionEvent e)
} // end inner class
} /* end applet */
+/* end applet */
class AlertContinue extends Frame
{
static final long serialVersionUID = 30L;
- public AlertContinue(ecm applet)
+ public AlertContinue(ECM applet)
{
super("Warning!");
Label label1, label2;
@@ -7995,8 +7996,8 @@ public AlertContinue(ecm applet)
class AlertActionListener implements ActionListener
{
- private ecm appletEcm;
- public AlertActionListener(ecm myApplet)
+ private ECM appletEcm;
+ public AlertActionListener(ECM myApplet)
{
appletEcm = myApplet;
}
@@ -8012,6 +8013,7 @@ public void actionPerformed(ActionEvent e)
}
} /* end class */
+/* end class */
class PanelWindowListener implements WindowListener
{
Oops, something went wrong.

0 comments on commit 514e32b

Please sign in to comment.