esoe 2 years ago
parent
commit
26be0a0be8
  1. 5
      files/pom.xml
  2. 5
      files/src/main/java/ru/molokoin/AnnotationReader.java
  3. 8
      files/src/main/java/ru/molokoin/File.java
  4. 3
      files/src/main/java/ru/molokoin/Storage.java
  5. BIN
      files/target/classes/ru/molokoin/AnnotationReader.class
  6. BIN
      files/target/classes/ru/molokoin/Extension.class
  7. BIN
      files/target/classes/ru/molokoin/File.class
  8. BIN
      files/target/classes/ru/molokoin/Storage.class
  9. 2
      files/target/dependencies.txt

5
files/pom.xml

@ -17,10 +17,5 @@ @@ -17,10 +17,5 @@
<artifactId>files</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

5
files/src/main/java/ru/molokoin/AnnotationReader.java

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
package ru.molokoin;
public class AnnotationReader {
}

8
files/src/main/java/ru/molokoin/File.java

@ -1,10 +1,16 @@ @@ -1,10 +1,16 @@
package ru.molokoin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Inherited
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface File {
String name() default "noname";
byte size() default "0";
byte size() default 0;
Extension extension () default Extension.OTHER;
}

3
files/src/main/java/ru/molokoin/Storage.java

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
package ru.molokoin;
//import annotations
//@File (name=noname, size=0, extension=Extension.OTHER)
@File (name="noname", size=0, extension=Extension.OTHER)
public class Storage {
//Extension extension;
public Storage(){
@ -10,7 +10,6 @@ public class Storage { @@ -10,7 +10,6 @@ public class Storage {
}
//читаем днные аннотации
public static void main(String[] args) {
System.out.println("Storage.main()");
//Storage storage = new Storage();

BIN
files/target/classes/ru/molokoin/AnnotationReader.class

Binary file not shown.

BIN
files/target/classes/ru/molokoin/Extension.class

Binary file not shown.

BIN
files/target/classes/ru/molokoin/File.class

Binary file not shown.

BIN
files/target/classes/ru/molokoin/Storage.class

Binary file not shown.

2
files/target/dependencies.txt

@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
digraph "ru.molokoin:files:jar:1.0" {
}
Loading…
Cancel
Save