Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html-generators/generatesocialqueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
static final String QUEUE_FILE = SOCIAL_DIR + "/queue.txt";
static final String TWEETS_DIR = SOCIAL_DIR + "/tweets";
static final String STATE_FILE = SOCIAL_DIR + "/state.yaml";
static final String BASE_URL = "https://javaevolved.github.io";
static final String BASE_URL = "https://javaevolved.dev";
static final int MAX_TWEET_LENGTH = 280;

static final ObjectMapper YAML_MAPPER = new ObjectMapper(new YAMLFactory());
Expand Down
2 changes: 1 addition & 1 deletion social/tweets/collections/collection-bulk-operations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual iterator removal → Collection.removeIf() (JDK 8+)

🔗 https://javaevolved.github.io/collections/collection-bulk-operations.html
🔗 https://javaevolved.dev/collections/collection-bulk-operations.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/collectors-teeing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Two Passes → teeing() (JDK 12+)

🔗 https://javaevolved.github.io/collections/collectors-teeing.html
🔗 https://javaevolved.dev/collections/collectors-teeing.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/comparator-factories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Anonymous Comparator → Comparator factories (JDK 8+)

🔗 https://javaevolved.github.io/collections/comparator-factories.html
🔗 https://javaevolved.dev/collections/comparator-factories.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Copy + Wrap → List.copyOf() (JDK 10+)

🔗 https://javaevolved.github.io/collections/copying-collections-immutably.html
🔗 https://javaevolved.dev/collections/copying-collections-immutably.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/immutable-list-creation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Verbose Wrapping → List.of() (JDK 9+)

🔗 https://javaevolved.github.io/collections/immutable-list-creation.html
🔗 https://javaevolved.dev/collections/immutable-list-creation.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/immutable-map-creation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Map Builder Pattern → Map.of() (JDK 9+)

🔗 https://javaevolved.github.io/collections/immutable-map-creation.html
🔗 https://javaevolved.dev/collections/immutable-map-creation.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/immutable-set-creation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Verbose Wrapping → Set.of() (JDK 9+)

🔗 https://javaevolved.github.io/collections/immutable-set-creation.html
🔗 https://javaevolved.dev/collections/immutable-set-creation.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Hashtable → ConcurrentHashMap (JDK 5+)

🔗 https://javaevolved.github.io/collections/legacy-synchronized-collections.html
🔗 https://javaevolved.dev/collections/legacy-synchronized-collections.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/map-compute-and-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

get() + null check + put() → computeIfAbsent() (JDK 8+)

🔗 https://javaevolved.github.io/collections/map-compute-and-merge.html
🔗 https://javaevolved.dev/collections/map-compute-and-merge.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/map-entry-factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

SimpleEntry → Map.entry() (JDK 9+)

🔗 https://javaevolved.github.io/collections/map-entry-factory.html
🔗 https://javaevolved.dev/collections/map-entry-factory.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/reverse-list-iteration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual ListIterator → reversed() (JDK 21+)

🔗 https://javaevolved.github.io/collections/reverse-list-iteration.html
🔗 https://javaevolved.dev/collections/reverse-list-iteration.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/sequenced-collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Index Arithmetic → getFirst/getLast (JDK 21+)

🔗 https://javaevolved.github.io/collections/sequenced-collections.html
🔗 https://javaevolved.dev/collections/sequenced-collections.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/stack-to-deque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Stack → Deque with ArrayDeque (JDK 6+)

🔗 https://javaevolved.github.io/collections/stack-to-deque.html
🔗 https://javaevolved.dev/collections/stack-to-deque.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/stream-toarray-typed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Filter + Copy → toArray(generator) (JDK 8+)

🔗 https://javaevolved.github.io/collections/stream-toarray-typed.html
🔗 https://javaevolved.dev/collections/stream-toarray-typed.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/collections/unmodifiable-collectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

collectingAndThen → stream.toList() (JDK 16+)

🔗 https://javaevolved.github.io/collections/unmodifiable-collectors.html
🔗 https://javaevolved.dev/collections/unmodifiable-collectors.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/completablefuture-chaining.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Blocking Future.get() → CompletableFuture (JDK 8+)

🔗 https://javaevolved.github.io/concurrency/completablefuture-chaining.html
🔗 https://javaevolved.dev/concurrency/completablefuture-chaining.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/concurrent-http-virtual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Thread Pool + URLConnection → Virtual Threads + HttpClient (JDK 21+)

🔗 https://javaevolved.github.io/concurrency/concurrent-http-virtual.html
🔗 https://javaevolved.dev/concurrency/concurrent-http-virtual.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/executor-try-with-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Shutdown → try-with-resources (JDK 19+)

🔗 https://javaevolved.github.io/concurrency/executor-try-with-resources.html
🔗 https://javaevolved.dev/concurrency/executor-try-with-resources.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/lock-free-lazy-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

synchronized + volatile → StableValue (JDK 25+)

🔗 https://javaevolved.github.io/concurrency/lock-free-lazy-init.html
🔗 https://javaevolved.dev/concurrency/lock-free-lazy-init.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/process-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Runtime.exec() → ProcessHandle (JDK 9+)

🔗 https://javaevolved.github.io/concurrency/process-api.html
🔗 https://javaevolved.dev/concurrency/process-api.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/scoped-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

ThreadLocal → ScopedValue (JDK 25+)

🔗 https://javaevolved.github.io/concurrency/scoped-values.html
🔗 https://javaevolved.dev/concurrency/scoped-values.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/stable-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Double-Checked Locking → StableValue (JDK 25+)

🔗 https://javaevolved.github.io/concurrency/stable-values.html
🔗 https://javaevolved.dev/concurrency/stable-values.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/structured-concurrency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Thread Lifecycle → StructuredTaskScope (JDK 25+)

🔗 https://javaevolved.github.io/concurrency/structured-concurrency.html
🔗 https://javaevolved.dev/concurrency/structured-concurrency.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/thread-sleep-duration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Milliseconds → Duration (JDK 19+)

🔗 https://javaevolved.github.io/concurrency/thread-sleep-duration.html
🔗 https://javaevolved.dev/concurrency/thread-sleep-duration.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Thread.stop() → Future.cancel(true) (JDK 5+)

🔗 https://javaevolved.github.io/concurrency/thread-stop-to-cooperative-cancellation.html
🔗 https://javaevolved.dev/concurrency/thread-stop-to-cooperative-cancellation.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Timer and TimerTask → ScheduledExecutorService (JDK 5+)

🔗 https://javaevolved.github.io/concurrency/timer-task-to-scheduled-executor.html
🔗 https://javaevolved.dev/concurrency/timer-task-to-scheduled-executor.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/concurrency/virtual-threads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Platform Threads → Virtual Threads (JDK 21+)

🔗 https://javaevolved.github.io/concurrency/virtual-threads.html
🔗 https://javaevolved.dev/concurrency/virtual-threads.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual wait and notify → BlockingQueue (JDK 5+)

🔗 https://javaevolved.github.io/concurrency/wait-notify-to-blocking-queue.html
🔗 https://javaevolved.dev/concurrency/wait-notify-to-blocking-queue.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/date-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

SimpleDateFormat → DateTimeFormatter (JDK 8+)

🔗 https://javaevolved.github.io/datetime/date-formatting.html
🔗 https://javaevolved.dev/datetime/date-formatting.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/duration-and-period.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Millisecond Math → Duration / Period (JDK 8+)

🔗 https://javaevolved.github.io/datetime/duration-and-period.html
🔗 https://javaevolved.dev/datetime/duration-and-period.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/hex-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Hex Conversion → HexFormat (JDK 17+)

🔗 https://javaevolved.github.io/datetime/hex-format.html
🔗 https://javaevolved.dev/datetime/hex-format.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/instant-precision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Milliseconds → Nanoseconds (JDK 9+)

🔗 https://javaevolved.github.io/datetime/instant-precision.html
🔗 https://javaevolved.dev/datetime/instant-precision.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/java-time-basics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Date + Calendar → java.time.* (JDK 8+)

🔗 https://javaevolved.github.io/datetime/java-time-basics.html
🔗 https://javaevolved.dev/datetime/java-time-basics.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/locale-of.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Locale constructors → Locale.of() (JDK 19+)

🔗 https://javaevolved.github.io/datetime/locale-of.html
🔗 https://javaevolved.dev/datetime/locale-of.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/datetime/math-clamp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Nested min/max → Math.clamp() (JDK 21+)

🔗 https://javaevolved.github.io/datetime/math-clamp.html
🔗 https://javaevolved.dev/datetime/math-clamp.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

EJB TimerService → ManagedScheduledExecutorService (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/ejb-timer-vs-jakarta-scheduler.html
🔗 https://javaevolved.dev/enterprise/ejb-timer-vs-jakarta-scheduler.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/ejb-vs-cdi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

EJB → CDI Bean (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/ejb-vs-cdi.html
🔗 https://javaevolved.dev/enterprise/ejb-vs-cdi.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

JDBC ResultSet → JPA Criteria API (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/jdbc-resultset-vs-jpa-criteria.html
🔗 https://javaevolved.dev/enterprise/jdbc-resultset-vs-jpa-criteria.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/jdbc-vs-jooq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Raw JDBC → jOOQ SQL DSL (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/jdbc-vs-jooq.html
🔗 https://javaevolved.dev/enterprise/jdbc-vs-jooq.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/jdbc-vs-jpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

JDBC → JPA EntityManager (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/jdbc-vs-jpa.html
🔗 https://javaevolved.dev/enterprise/jdbc-vs-jpa.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/jndi-lookup-vs-cdi-injection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

JNDI Lookup → CDI @Inject (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/jndi-lookup-vs-cdi-injection.html
🔗 https://javaevolved.dev/enterprise/jndi-lookup-vs-cdi-injection.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/jpa-vs-jakarta-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

JPA EntityManager → Jakarta Data Repository (JDK 21+)

🔗 https://javaevolved.github.io/enterprise/jpa-vs-jakarta-data.html
🔗 https://javaevolved.dev/enterprise/jpa-vs-jakarta-data.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

@ManagedBean → @Named + CDI (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/jsf-managed-bean-vs-cdi-named.html
🔗 https://javaevolved.dev/enterprise/jsf-managed-bean-vs-cdi-named.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Manual Transaction → @Transactional (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/manual-transaction-vs-declarative.html
🔗 https://javaevolved.dev/enterprise/manual-transaction-vs-declarative.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/mdb-vs-reactive-messaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

Message-Driven Bean → Reactive Messaging (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/mdb-vs-reactive-messaging.html
🔗 https://javaevolved.dev/enterprise/mdb-vs-reactive-messaging.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/servlet-vs-jaxrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

HttpServlet → JAX-RS Resource (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/servlet-vs-jaxrs.html
🔗 https://javaevolved.dev/enterprise/servlet-vs-jaxrs.html

#Java #JavaEvolved
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

@Singleton EJB → @ApplicationScoped CDI (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/singleton-ejb-vs-cdi-application-scoped.html
🔗 https://javaevolved.dev/enterprise/singleton-ejb-vs-cdi-application-scoped.html

#Java #JavaEvolved
2 changes: 1 addition & 1 deletion social/tweets/enterprise/soap-vs-jakarta-rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ text: |-

JAX-WS / SOAP → Jakarta REST / JSON (JDK 11+)

🔗 https://javaevolved.github.io/enterprise/soap-vs-jakarta-rest.html
🔗 https://javaevolved.dev/enterprise/soap-vs-jakarta-rest.html

#Java #JavaEvolved
Loading