This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . | |
. | |
./classes | |
./source | |
./source/local | |
./source/local/User1.java | |
./source/foreign | |
./source/foreign/User2.java | |
$ | |
$ javac -d ./classes source/local/*.java source/foreign/*.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tld.examples; | |
public class Example { | |
protected String mandatory; | |
protected String optional; | |
protected String mandatoryIfOptionalExists; | |
private Example() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tld.example; | |
import org.junit.jupiter.api.function.Executable; | |
import org.junit.Test; | |
import static org.junit.jupiter.api.Assertions.assertAll; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
public class Example { | |
@Test | |
public void example() { | |
assertAll("parent", | |
() -> assertEquals("1", "2"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class ExampleNoPackagePackagePrivateAbstract {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1234, | |
"name": "a name", | |
"dynamicsection": { | |
"key1": 1, | |
"key2": false, | |
"key3": "a string" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
def indent(): | |
logic1 = True | |
logic2 = True | |
if logic1 : | |
print("A") | |
if not logic2 : | |
print("B") | |
else : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki:ansible-apt-issue john$ vagrant up ansible-apt-module | |
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider... | |
==> ansible-apt-module: Importing base box 'ubuntu/artful64'... | |
==> ansible-apt-module: Matching MAC address for NAT networking... | |
==> ansible-apt-module: Checking if box 'ubuntu/artful64' is up to date... | |
==> ansible-apt-module: Setting the name of the VM: ansible-apt-issue_ansible-apt-module_1529753061622_14729 | |
==> ansible-apt-module: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> ansible-apt-module: Clearing any previously set network interfaces... | |
==> ansible-apt-module: Preparing network interfaces based on configuration... | |
ansible-apt-module: Adapter 1: nat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki:ansible-apt-issue john$ vagrant up ansible-apt-module | |
Bringing machine 'ansible-apt-module' up with 'virtualbox' provider... | |
==> ansible-apt-module: Importing base box 'ubuntu/bionic64'... | |
==> ansible-apt-module: Matching MAC address for NAT networking... | |
==> ansible-apt-module: Checking if box 'ubuntu/bionic64' is up to date... | |
==> ansible-apt-module: Setting the name of the VM: ansible-apt-issue_ansible-apt-module_1529754013294_58923 | |
==> ansible-apt-module: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> ansible-apt-module: Clearing any previously set network interfaces... | |
==> ansible-apt-module: Preparing network interfaces based on configuration... | |
ansible-apt-module: Adapter 1: nat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Employee { | |
public static class Builder<T extends Employee> { | |
private T entity; | |
public Builder() { | |
this.entity = new Employee(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; | |
public class RajR { | |
public static class Person { | |
private final String firstname; | |
private final String surname; |