1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! # `java.security.MessageDigest`: dogshit engineering

/// # Java lambdas: double or nothing
///
/// Java compiler has a fun statement about lambda parameters: `(use of '_' as an identifier is forbidden for lambda parameters)`.
///
/// To shut it off, double the character, like this:
///
/// ```java
/// this.setThat((__) -> {});
/// ```
pub const _11_: () = ();

/// # `java.security.MessageDigest`: dogshit engineering
///
/// - `::getInstance(String)` needs an algorithm name, and thows `java.security.NoSuchAlgorithmException` if one is not supported. Ok, fine.
///
/// - The [docs][java:MessageDigest] says:
///
///     > Every implementation of the Java platform is required to support the following standard MessageDigest algorithms:
///     > - MD5
///     > - SHA-1
///     > - SHA-256
///
/// Now that is called dogshit engineering.
///
/// Why? If they state that thing, they should make some methods which _throw-no-exceptions_. Otherwise the API is plain-old-stupid.
///
/// [java:MessageDigest]: https://docs.oracle.com/javase/7/docs/api/java/security/MessageDigest.html
pub const _03_: () = ();