Skip to content

Commit

Permalink
Some update, add Thread util
Browse files Browse the repository at this point in the history
  • Loading branch information
aquapi committed May 11, 2022
1 parent 1440e55 commit e1719db
Show file tree
Hide file tree
Showing 17 changed files with 67 additions and 1,587 deletions.
9 changes: 0 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@
<maven.compiler.target>17</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
Expand Down
79 changes: 0 additions & 79 deletions src/main/java/com/pkg/async/AsyncScope.java

This file was deleted.

135 changes: 0 additions & 135 deletions src/main/java/com/pkg/async/Promise.java

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/com/pkg/async/function/AsyncFunctionA.java

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/com/pkg/async/function/AsyncFunctionB.java

This file was deleted.

13 changes: 6 additions & 7 deletions src/main/java/com/pkg/awt/Pen.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,17 @@ public Pen() {
*/

public void setColor(Color c) {
k.add((e) -> e.setColor(c));
k.add(e -> e.setColor(c));
drawerG.setColor(c);
}

/**
* @param locateX new x location
* @param locateY new y location
* @since 1.8
*/

public void goTo(int locateX, int locateY) {
k.add((e) -> e.goTo(locateX, locateY));
k.add(e -> e.goTo(locateX, locateY));
this.locateX = locateX;
this.locateY = locateY;
}
Expand All @@ -106,7 +105,7 @@ public void goTo(int locateX, int locateY) {
*/

public void penup() {
k.add((e) -> e.penup());
k.add(e -> e.penup());
penup = true;
}

Expand All @@ -117,7 +116,7 @@ public void penup() {
*/

public void pendown() {
k.add((e) -> e.pendown());
k.add(e -> e.pendown());
penup = false;
}

Expand All @@ -128,7 +127,7 @@ public void pendown() {
*/

public void drawLine(int newX, int newY) {
k.add((e) -> e.drawLine(newX, newY));
k.add(e -> e.drawLine(newX, newY));
if (!penup)
drawerG.drawLine(this.locateX, this.locateY, newX, newY);
goTo(newX, newY);
Expand All @@ -141,7 +140,7 @@ public void drawLine(int newX, int newY) {
*/

public void rotate(int degree) {
k.add((e) -> e.rotate(degree));
k.add(e -> e.rotate(degree));
this.degree = this.degree + degree;
}

Expand Down
14 changes: 0 additions & 14 deletions src/main/java/com/pkg/def/Constants.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/pkg/def/DuplicateException.java

This file was deleted.

Loading

0 comments on commit e1719db

Please sign in to comment.