From 96ded31b61acbddbb0c721d16173311591e45986 Mon Sep 17 00:00:00 2001 From: esoe Date: Sun, 23 Oct 2022 13:01:13 +0300 Subject: [PATCH] qq --- files/pom.xml | 12 ++++---- files/src/main/docs/diagrams/src/Files.puml | 13 ++++----- .../java/ru/molokoin/AnnotationReseacher.java | 29 ------------------- .../main/java/ru/molokoin/DocumentFile.java | 3 ++ files/src/main/java/ru/molokoin/File.java | 24 +++++++-------- .../compile/default-compile/createdFiles.lst | 0 .../compile/default-compile/inputFiles.lst | 4 +++ 7 files changed, 30 insertions(+), 55 deletions(-) delete mode 100644 files/src/main/java/ru/molokoin/AnnotationReseacher.java create mode 100644 files/src/main/java/ru/molokoin/DocumentFile.java create mode 100644 files/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 files/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst diff --git a/files/pom.xml b/files/pom.xml index 4de3078..4479999 100644 --- a/files/pom.xml +++ b/files/pom.xml @@ -17,11 +17,9 @@ files 1.0 jar - - - org.projectlombok - lombok - 1.18.12 - provided - + + 11 + 11 + UTF-8 + \ No newline at end of file diff --git a/files/src/main/docs/diagrams/src/Files.puml b/files/src/main/docs/diagrams/src/Files.puml index 58bf6a0..ed7201a 100644 --- a/files/src/main/docs/diagrams/src/Files.puml +++ b/files/src/main/docs/diagrams/src/Files.puml @@ -1,9 +1,8 @@ @startuml Files + title Files class diagram class Storage { - Extension extension - String readAnnotation() - void main + File[] files } enum Extension{ DOCUMENT @@ -12,10 +11,10 @@ enum Extension{ VIDEO OTHER } -annotation File { - String name() - byte size() - Extension extension () +class File { + String name + byte size + Extension extension } @enduml \ No newline at end of file diff --git a/files/src/main/java/ru/molokoin/AnnotationReseacher.java b/files/src/main/java/ru/molokoin/AnnotationReseacher.java deleted file mode 100644 index 212f77a..0000000 --- a/files/src/main/java/ru/molokoin/AnnotationReseacher.java +++ /dev/null @@ -1,29 +0,0 @@ -package ru.molokoin; - - - - -import java.lang.annotation.Annotation; - -public class AnnotationReseacher { - public static File getFile(Storage storage){ - Annotation fileAnnotation = storage - .getClass() - .getAnnotation(File.class); - File file = (File)fileAnnotation; - return file; - } - public static void print(Storage storage){ - Annotation fileAnnotation = storage - .getClass() - .getAnnotation(File.class); - File file = (File)fileAnnotation; - System.out.println(file.name()); - System.out.println(file.extension()); - System.out.println(file.size()); - } - public static void main(String[] args) { - - - } -} diff --git a/files/src/main/java/ru/molokoin/DocumentFile.java b/files/src/main/java/ru/molokoin/DocumentFile.java new file mode 100644 index 0000000..851314a --- /dev/null +++ b/files/src/main/java/ru/molokoin/DocumentFile.java @@ -0,0 +1,3 @@ +public class DocumentFile extends File{ + +} diff --git a/files/src/main/java/ru/molokoin/File.java b/files/src/main/java/ru/molokoin/File.java index 79a9b7c..7b4dd58 100644 --- a/files/src/main/java/ru/molokoin/File.java +++ b/files/src/main/java/ru/molokoin/File.java @@ -1,16 +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; +public class File { + String name; + Byte size; + Extension extension; + + public File (String name, Byte size, Extension extension){ + + } + + public static void main(String[] args) { + // + } -@Inherited -@Target(ElementType.TYPE) -@Retention(RetentionPolicy.RUNTIME) -public @interface File { - String name() default "noname"; - byte size() default 0; - Extension extension () default Extension.OTHER; } diff --git a/files/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/files/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/files/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/files/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..98daa62 --- /dev/null +++ b/files/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,4 @@ +c:\Users\Strannik\Documents\esoe\code\education\files\src\main\java\ru\molokoin\DocumentFile.java +c:\Users\Strannik\Documents\esoe\code\education\files\src\main\java\ru\molokoin\Extension.java +c:\Users\Strannik\Documents\esoe\code\education\files\src\main\java\ru\molokoin\Storage.java +c:\Users\Strannik\Documents\esoe\code\education\files\src\main\java\ru\molokoin\File.java