Skip to content

Instantly share code, notes, and snippets.

final DateTimeFormatter FORMATTER =
DateTimeFormatter.ofPattern("dd MMM YYYY", new Locale("ru"));
final LocalDate startDate = LocalDate.of(2020, 12, 31)
final String formatted = FORMATTER.format(startDate)
formatted != "31 дек. 2020"
formatted == "31 дек. 2021"
//В последний день года форматтер добавляет один год
//Проверял на jdk 11.0.3 liberica
@mumukiller
mumukiller / example.page
Created March 6, 2019 14:47
Simple asciidoctor page
The Article Title
=================
Author's Name <authors@email.address>
v1.0, 2003-12
This is the optional preamble (an untitled section body). Useful for
writing simple sectionless documents consisting only of a preamble.
NOTE: The abstract, preface, appendix, bibliography, glossary and
@mumukiller
mumukiller / zipkin-memory-leak.txt
Created March 6, 2019 14:14
Zipkin Memory leak
The web application [ROOT] appears to have started a thread named [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@1937eaff}] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
org.springframework.boot.loader.jar.Handler.openConnection(Handler.java:95)
java.net.URL.openConnection(URL.java:979)
sun.misc.URLClassPath$Loader.getResource(URLClassPath.java:701)
sun.misc.URLClassPath.getResource(URLClassPath.java:212)
java.net.URLClassLoader$1.run(URLClassLoader.java:365)
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
java.lang.ClassLoader.loadClass(ClassLoader.java:424)