Skip to content

Commit 1878a7a

Browse files
authored
Merge pull request #1 from eugenp/master
update
2 parents 0f20715 + bba8410 commit 1878a7a

151 files changed

Lines changed: 3357 additions & 206 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core-java-modules/core-java-10/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This module contains articles about Java 10 core features
55
### Relevant Articles:
66

77
- [Java 10 LocalVariable Type-Inference](http://www.baeldung.com/java-10-local-variable-type-inference)
8-
- [Guide to Java 10](http://www.baeldung.com/java-10-overview)
8+
- [New Features in Java 10](https://www.baeldung.com/java-10-overview)
99
- [Copy a List to Another List in Java](http://www.baeldung.com/java-copy-list-to-another)
1010
- [Deep Dive Into the New Java JIT Compiler – Graal](https://www.baeldung.com/graal-java-jit-compiler)
1111
- [Copying Sets in Java](https://www.baeldung.com/java-copy-sets)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## Relevant Articles:
22

3-
43
- [String API Updates in Java 12](https://www.baeldung.com/java12-string-api)
5-
- [Java 12 New Features](https://www.baeldung.com/java-12-new-features)
4+
- [New Features in Java 12](https://www.baeldung.com/java-12-new-features)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
### Relevant articles:
22

33
- [Java Switch Statement](https://www.baeldung.com/java-switch)
4-
- [New Java 13 Features](https://www.baeldung.com/java-13-new-features)
4+
- [New Features in Java 13](https://www.baeldung.com/java-13-new-features)

core-java-modules/core-java-14/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ This module contains articles about Java 14.
1010
- [Helpful NullPointerExceptions in Java 14](https://www.baeldung.com/java-14-nullpointerexception)
1111
- [Foreign Memory Access API in Java 14](https://www.baeldung.com/java-foreign-memory-access)
1212
- [Java 14 Record Keyword](https://www.baeldung.com/java-record-keyword)
13-
- [Java 14 – New Features](https://www.baeldung.com/java-14-new-features)
13+
- [New Features in Java 14](https://www.baeldung.com/java-14-new-features)

core-java-modules/core-java-9-new-features/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This module contains articles about core Java features that have been introduced
44

55
### Relevant Articles:
66

7-
- [Java 9 New Features](https://www.baeldung.com/new-java-9)
7+
- [New Features in Java 9](https://www.baeldung.com/new-java-9)
88
- [Java 9 Variable Handles Demystified](http://www.baeldung.com/java-variable-handles)
99
- [Exploring the New HTTP Client in Java 9 and 11](http://www.baeldung.com/java-9-http-client)
1010
- [Multi-Release Jar Files](https://www.baeldung.com/java-multi-release-jar)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.baeldung.annotations;
2+
3+
import javax.annotation.Generated;
4+
5+
@RetentionAnnotation
6+
@Generated("Available only on source code")
7+
public class AnnotatedClass {
8+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.baeldung.annotations;
2+
3+
import java.lang.annotation.Retention;
4+
import java.lang.annotation.RetentionPolicy;
5+
import java.lang.annotation.Target;
6+
7+
import static java.lang.annotation.ElementType.TYPE;
8+
9+
@Target(TYPE)
10+
@Retention(RetentionPolicy.RUNTIME)
11+
public @interface RetentionAnnotation {
12+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.baeldung.annotations;
2+
3+
import org.junit.Test;
4+
5+
import java.lang.annotation.Annotation;
6+
7+
import static org.hamcrest.core.Is.is;
8+
import static org.junit.Assert.assertThat;
9+
10+
public class AnnotatedClassUnitTest {
11+
12+
@Test
13+
public void whenAnnotationRetentionPolicyRuntime_shouldAccess() {
14+
AnnotatedClass anAnnotatedClass = new AnnotatedClass();
15+
Annotation[] annotations = anAnnotatedClass.getClass().getAnnotations();
16+
assertThat(annotations.length, is(1));
17+
}
18+
}

core-java-modules/core-java-char/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
This module contains articles about Java Character Class
44

55
### Relevant Articles:
6-
- [Character#isAlphabetic vs Character#isLetter](https://www.baeldung.com/java-character-isletter-isalphabetic)
6+
- [Character#isAlphabetic vs. Character#isLetter](https://www.baeldung.com/java-character-isletter-isalphabetic)

core-java-modules/core-java-collections-4/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</dependencies>
2626

2727
<properties>
28-
<assertj.version>3.18.0</assertj.version>
28+
<assertj.version>3.19.0</assertj.version>
2929
</properties>
3030

3131
</project>

0 commit comments

Comments
 (0)