Permalink
Browse files

Follow common Camel Case style for class names

Hence e.g. 'DNSName' becomes 'DnsName'.

See also "Google Java Style Guide" § 5.2.2 [1] and § 5.3 [2].

1: https://google.github.io/styleguide/javaguide.html#s5.2.2-class-names
2: https://google.github.io/styleguide/javaguide.html#s5.3-camel-case
  • Loading branch information...
Flowdalic committed Apr 30, 2018
1 parent 32402a5 commit 8445f5fa975b52353c0e4d6f92479607e29f3c35
Showing with 1,164 additions and 1,164 deletions.
  1. +1 −1 README.md
  2. +2 −2 ...dns-android21/src/main/java/org/minidns/dnsserverlookup/android21/AndroidUsingLinkProperties.java
  3. +15 −15 minidns-async/src/main/java/org/minidns/source/async/AsyncDnsRequest.java
  4. +6 −6 minidns-async/src/main/java/org/minidns/source/async/AsyncNetworkDataSource.java
  5. +63 −63 minidns-client/src/main/java/org/minidns/{AbstractDNSClient.java → AbstractDnsClient.java}
  6. +8 −8 minidns-client/src/main/java/org/minidns/{DNSCache.java → DnsCache.java}
  7. +24 −24 minidns-client/src/main/java/org/minidns/{DNSClient.java → DnsClient.java}
  8. +2 −2 minidns-client/src/main/java/org/minidns/{MiniDNSConfiguration.java → MiniDnsConfiguration.java}
  9. +14 −14 minidns-client/src/main/java/org/minidns/{MiniDNSException.java → MiniDnsException.java}
  10. +3 −3 minidns-client/src/main/java/org/minidns/{MiniDNSInitialization.java → MiniDnsInitialization.java}
  11. +7 −7 minidns-client/src/main/java/org/minidns/{RRSet.java → RrSet.java}
  12. +19 −19 minidns-client/src/main/java/org/minidns/cache/{ExtendedLRUCache.java → ExtendedLruCache.java}
  13. +7 −7 minidns-client/src/main/java/org/minidns/cache/{FullLRUCache.java → FullLruCache.java}
  14. +14 −14 minidns-client/src/main/java/org/minidns/cache/{LRUCache.java → LruCache.java}
  15. +2 −2 minidns-client/src/main/java/org/minidns/cache/MiniDnsCacheFactory.java
  16. +4 −4 ...s/dnsserverlookup/{AbstractDNSServerLookupMechanism.java → AbstractDnsServerLookupMechanism.java}
  17. +2 −2 minidns-client/src/main/java/org/minidns/dnsserverlookup/AndroidUsingExec.java
  18. +2 −2 minidns-client/src/main/java/org/minidns/dnsserverlookup/AndroidUsingReflection.java
  19. +2 −2 .../java/org/minidns/dnsserverlookup/{DNSServerLookupMechanism.java → DnsServerLookupMechanism.java}
  20. +2 −2 minidns-client/src/main/java/org/minidns/dnsserverlookup/UnixUsingEtcResolvConf.java
  21. +11 −11 minidns-client/src/main/java/org/minidns/source/{DNSDataSource.java → DnsDataSource.java}
  22. +11 −11 minidns-client/src/main/java/org/minidns/source/NetworkDataSource.java
  23. +10 −10 minidns-client/src/main/java/org/minidns/source/NetworkDataSourceWithAccounting.java
  24. +22 −22 minidns-client/src/test/java/org/minidns/{DNSClientTest.java → DnsClientTest.java}
  25. +67 −67 minidns-client/src/test/java/org/minidns/{DNSWorld.java → DnsWorld.java}
  26. +14 −14 minidns-client/src/test/java/org/minidns/{LRUCacheTest.java → LruCacheTest.java}
  27. +5 −5 minidns-client/src/test/java/org/minidns/source/NetworkDataSourceTest.java
  28. +2 −2 minidns-core/src/main/java/org/minidns/constants/{DNSSECConstants.java → DnssecConstants.java}
  29. +11 −11 minidns-core/src/main/java/org/minidns/dnslabel/{DNSLabel.java → DnsLabel.java}
  30. +1 −1 minidns-core/src/main/java/org/minidns/dnslabel/LdhLabel.java
  31. +2 −2 minidns-core/src/main/java/org/minidns/dnslabel/NonLdhLabel.java
  32. +32 −32 minidns-core/src/main/java/org/minidns/dnsmessage/{DNSMessage.java → DnsMessage.java}
  33. +12 −12 minidns-core/src/main/java/org/minidns/dnsmessage/Question.java
  34. +54 −54 minidns-core/src/main/java/org/minidns/dnsname/{DNSName.java → DnsName.java}
  35. +9 −9 ...e/src/main/java/org/minidns/dnsname/{InvalidDNSNameException.java → InvalidDnsNameException.java}
  36. +20 −20 minidns-core/src/main/java/org/minidns/edns/{EDNS.java → Edns.java}
  37. +8 −8 minidns-core/src/main/java/org/minidns/edns/{EDNSOption.java → EdnsOption.java}
  38. +5 −5 minidns-core/src/main/java/org/minidns/edns/{NSID.java → Nsid.java}
  39. +3 −3 minidns-core/src/main/java/org/minidns/edns/{UnknownEDNSOption.java → UnknownEdnsOption.java}
  40. +4 −4 minidns-core/src/main/java/org/minidns/record/CNAME.java
  41. +2 −2 minidns-core/src/main/java/org/minidns/record/DLV.java
  42. +4 −4 minidns-core/src/main/java/org/minidns/record/DNAME.java
  43. +1 −1 minidns-core/src/main/java/org/minidns/record/DNSKEY.java
  44. +2 −2 minidns-core/src/main/java/org/minidns/record/DS.java
  45. +2 −2 minidns-core/src/main/java/org/minidns/record/DelegatingDnssecRR.java
  46. +6 −6 minidns-core/src/main/java/org/minidns/record/MX.java
  47. +3 −3 minidns-core/src/main/java/org/minidns/record/NS.java
  48. +5 −5 minidns-core/src/main/java/org/minidns/record/NSEC.java
  49. +7 −7 minidns-core/src/main/java/org/minidns/record/OPT.java
  50. +4 −4 minidns-core/src/main/java/org/minidns/record/PTR.java
  51. +9 −9 minidns-core/src/main/java/org/minidns/record/RRSIG.java
  52. +5 −5 minidns-core/src/main/java/org/minidns/record/RRWithTarget.java
  53. +10 −10 minidns-core/src/main/java/org/minidns/record/Record.java
  54. +7 −7 minidns-core/src/main/java/org/minidns/record/SOA.java
  55. +6 −6 minidns-core/src/main/java/org/minidns/record/SRV.java
  56. +5 −5 minidns-core/src/main/java/org/minidns/util/InetAddressUtil.java
  57. +2 −2 minidns-core/src/main/java/org/minidns/util/NameUtil.java
  58. +2 −2 minidns-core/src/main/java/org/minidns/util/SrvUtil.java
  59. +8 −8 minidns-core/src/test/java/org/minidns/dnslabel/{DNSLabelTest.java → DnsLabelTest.java}
  60. +50 −50 minidns-core/src/test/java/org/minidns/dnsmessage/{DNSMessageTest.java → DnsMessageTest.java}
  61. +34 −34 minidns-core/src/test/java/org/minidns/dnsname/{DNSNameTest.java → DnsNameTest.java}
  62. +2 −2 minidns-core/src/test/java/org/minidns/record/RecordsTest.java
  63. +5 −5 minidns-core/src/test/java/org/minidns/util/InetAddressUtilTest.java
  64. +3 −3 minidns-dane-java7/src/main/java/org/minidns/dane/java7/DaneExtendedTrustManager.java
  65. +12 −12 minidns-dnssec/src/main/java/org/minidns/dane/DaneVerifier.java
  66. +44 −44 minidns-dnssec/src/main/java/org/minidns/dnssec/{DNSSECClient.java → DnssecClient.java}
  67. +3 −3 minidns-dnssec/src/main/java/org/minidns/dnssec/{DNSSECMessage.java → DnssecMessage.java}
  68. +5 −5 .../minidns/dnssec/{DNSSECResultNotAuthenticException.java → DnssecResultNotAuthenticException.java}
  69. +6 −6 .../org/minidns/dnssec/{DNSSECValidationFailedException.java → DnssecValidationFailedException.java}
  70. +2 −2 ...nssec/{DNSSECValidatorInitializationException.java → DnssecValidatorInitializationException.java}
  71. +1 −1 minidns-dnssec/src/main/java/org/minidns/dnssec/UnverifiedReason.java
  72. +11 −11 minidns-dnssec/src/main/java/org/minidns/dnssec/Verifier.java
  73. +14 −14 minidns-dnssec/src/main/java/org/minidns/dnssec/algorithms/AlgorithmMap.java
  74. +5 −5 ...c/main/java/org/minidns/dnssec/algorithms/{DSASignatureVerifier.java → DsaSignatureVerifier.java}
  75. +8 −8 ...in/java/org/minidns/dnssec/algorithms/{ECDSASignatureVerifier.java → EcdsaSignatureVerifier.java}
  76. +4 −4 .../java/org/minidns/dnssec/algorithms/{ECGOSTSignatureVerifier.java → EcgostSignatureVerifier.java}
  77. +2 −2 minidns-dnssec/src/main/java/org/minidns/dnssec/algorithms/JavaSecSignatureVerifier.java
  78. +4 −4 ...c/main/java/org/minidns/dnssec/algorithms/{RSASignatureVerifier.java → RsaSignatureVerifier.java}
  79. +51 −51 minidns-dnssec/src/test/java/org/minidns/dnssec/{DNSSECClientTest.java → DnssecClientTest.java}
  80. +15 −15 minidns-dnssec/src/test/java/org/minidns/dnssec/{DNSSECWorld.java → DnssecWorld.java}
  81. +3 −3 minidns-dnssec/src/test/java/org/minidns/dnssec/VerifierTest.java
  82. +1 −1 minidns-dnssec/src/test/java/org/minidns/dnssec/algorithms/DigestTest.java
  83. +8 −8 ...ava/org/minidns/dnssec/algorithms/{DSASingatureVerifierTest.java → DsaSingatureVerifierTest.java}
  84. +9 −9 ...ava/org/minidns/dnssec/algorithms/{RSASignatureVerifierTest.java → RsaSignatureVerifierTest.java}
  85. +4 −4 minidns-dnssec/src/test/java/org/minidns/dnssec/algorithms/SignatureVerifierTest.java
  86. +22 −22 minidns-hla/src/main/java/org/minidns/hla/DnssecResolverApi.java
  87. +3 −3 minidns-hla/src/main/java/org/minidns/hla/ResolutionUnsuccessfulException.java
  88. +23 −23 minidns-hla/src/main/java/org/minidns/hla/ResolverApi.java
  89. +12 −12 minidns-hla/src/main/java/org/minidns/hla/ResolverResult.java
  90. +3 −3 minidns-hla/src/main/java/org/minidns/hla/SrvProto.java
  91. +5 −5 minidns-hla/src/main/java/org/minidns/hla/SrvResolverResult.java
  92. +3 −3 minidns-hla/src/main/java/org/minidns/hla/SrvService.java
  93. +12 −12 minidns-integration-test/src/main/java/org/minidns/integrationtest/AsyncApiTest.java
  94. +7 −7 minidns-integration-test/src/main/java/org/minidns/integrationtest/CoreTest.java
  95. +11 −11 ...ns-integration-test/src/main/java/org/minidns/integrationtest/{DNSSECTest.java → DnssecTest.java}
  96. +5 −5 minidns-integration-test/src/main/java/org/minidns/integrationtest/IntegrationTestHelper.java
  97. +11 −11 minidns-integration-test/src/main/java/org/minidns/integrationtest/IntegrationTestTools.java
  98. +12 −12 ...t/src/main/java/org/minidns/integrationtest/{IterativeDNSSECTest.java → IterativeDnssecTest.java}
  99. +13 −13 minidns-integration-test/src/main/java/org/minidns/integrationtest/{NSIDTest.java → NsidTest.java}
  100. +2 −2 minidns-iterative-resolver/src/main/java/org/minidns/iterative/IterativeClientException.java
  101. +28 −28 ...-resolver/src/main/java/org/minidns/iterative/{IterativeDNSClient.java → IterativeDnsClient.java}
  102. +30 −30 ...ve-resolver/src/main/java/org/minidns/iterative/{ReliableDNSClient.java → ReliableDnsClient.java}
  103. +4 −4 minidns-iterative-resolver/src/main/java/org/minidns/iterative/ResolutionState.java
  104. +14 −14 ...r/src/test/java/org/minidns/iterative/{IterativeDNSClientTest.java → IterativeDnsClientTest.java}
  105. +4 −4 minidns-repl/scala.repl
  106. +12 −12 minidns-repl/src/main/java/org/minidns/minidnsrepl/{DNSSECStats.java → DnssecStats.java}
  107. +18 −18 minidns-repl/src/main/java/org/minidns/minidnsrepl/MiniDnsRepl.java
  108. +11 −11 minidns-repl/src/main/java/org/minidns/minidnsrepl/{MiniDNSStats.java → MiniDnsStats.java}
  109. +1 −1 misc/sbt/build.sbt
@@ -84,7 +84,7 @@ MiniDNS comes with a REPL which can be used to perform DNS lookups and to test t
minidns $ ./repl
...
scala> c query ("measite.de", TYPE.A)
res4: org.minidns.DNSMessage = DNSMessage@54653(QUERY NO_ERROR qr rd ra) { \
res4: org.minidns.DnsMessage = DnsMessage@54653(QUERY NO_ERROR qr rd ra) { \
[Q: measite.de. IN A] \
[A: measite.de. 3599 IN A 85.10.226.249] \
[X: EDNS: version: 0, flags:; udp: 512]
@@ -21,14 +21,14 @@
import java.util.ArrayList;
import java.util.List;

import org.minidns.dnsserverlookup.AbstractDNSServerLookupMechanism;
import org.minidns.dnsserverlookup.AbstractDnsServerLookupMechanism;
import org.minidns.dnsserverlookup.AndroidUsingExec;

/**
* Requires the ACCESS_NETWORK_STATE permission.
*
*/
public class AndroidUsingLinkProperties extends AbstractDNSServerLookupMechanism {
public class AndroidUsingLinkProperties extends AbstractDnsServerLookupMechanism {

private final ConnectivityManager connectivityManager;

@@ -26,19 +26,19 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import org.minidns.MiniDNSException;
import org.minidns.MiniDnsException;
import org.minidns.MiniDnsFuture;
import org.minidns.MiniDnsFuture.InternalMiniDnsFuture;
import org.minidns.dnsmessage.DNSMessage;
import org.minidns.source.DNSDataSource.OnResponseCallback;
import org.minidns.source.DNSDataSource.QueryMode;
import org.minidns.dnsmessage.DnsMessage;
import org.minidns.source.DnsDataSource.OnResponseCallback;
import org.minidns.source.DnsDataSource.QueryMode;
import org.minidns.util.MultipleIoException;

public class AsyncDnsRequest {

private static final Logger LOGGER = Logger.getLogger(AsyncDnsRequest.class.getName());

private final InternalMiniDnsFuture<DNSMessage, IOException> future = new InternalMiniDnsFuture<DNSMessage, IOException>() {
private final InternalMiniDnsFuture<DnsMessage, IOException> future = new InternalMiniDnsFuture<DnsMessage, IOException>() {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
boolean res = super.cancel(mayInterruptIfRunning);
@@ -47,7 +47,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
}
};

private final DNSMessage request;
private final DnsMessage request;

private final int udpPayloadSize;

@@ -77,7 +77,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
* @param asyncNds A reference to the {@link AsyncNetworkDataSource} instance manageing the requests.
* @param onResponseCallback the optional callback when a response was received.
*/
AsyncDnsRequest(DNSMessage request, InetAddress inetAddress, int port, int udpPayloadSize, AsyncNetworkDataSource asyncNds, OnResponseCallback onResponseCallback) {
AsyncDnsRequest(DnsMessage request, InetAddress inetAddress, int port, int udpPayloadSize, AsyncNetworkDataSource asyncNds, OnResponseCallback onResponseCallback) {
this.request = request;
this.udpPayloadSize = udpPayloadSize;
this.asyncNds = asyncNds;
@@ -132,15 +132,15 @@ private void addException(IOException e) {
exceptions.add(e);
}

private final void gotResult(DNSMessage result) {
private final void gotResult(DnsMessage result) {
if (onResponseCallback != null) {
onResponseCallback.onResponse(request, result);
}
asyncNds.finished(this);
future.setResult(result);
}

MiniDnsFuture<DNSMessage, IOException> getFuture() {
MiniDnsFuture<DnsMessage, IOException> getFuture() {
return future;
}

@@ -281,16 +281,16 @@ public void handleChannelSelectedAndNotCancelled(SelectableChannel channel, Sele
addException(e);
}

DNSMessage response;
DnsMessage response;
try {
response = new DNSMessage(byteBuffer.array());
response = new DnsMessage(byteBuffer.array());
} catch (IOException e) {
abortUdpRequestAndCleanup(datagramChannel, "Exception constructing dns message from datagram channel", e);
return;
}

if (response.id != request.id) {
addException(new MiniDNSException.IdMismatch(request, response));
addException(new MiniDnsException.IdMismatch(request, response));
startTcpRequest();
return;
}
@@ -521,16 +521,16 @@ public void handleChannelSelectedAndNotCancelled(SelectableChannel channel, Sele
addException(e);
}

DNSMessage response;
DnsMessage response;
try {
response = new DNSMessage(byteBuffer.array());
response = new DnsMessage(byteBuffer.array());
} catch (IOException e) {
abortTcpRequestAndCleanup(socketChannel, "Exception creating DNS message form socket channel bytes", e);
return;
}

if (request.id != response.id) {
MiniDNSException idMismatchException = new MiniDNSException.IdMismatch(request, response);
MiniDnsException idMismatchException = new MiniDnsException.IdMismatch(request, response);
addException(idMismatchException);
AsyncDnsRequest.this.future.setException(MultipleIoException.toIOException(exceptions));
return;
@@ -33,10 +33,10 @@
import java.util.logging.Logger;

import org.minidns.MiniDnsFuture;
import org.minidns.dnsmessage.DNSMessage;
import org.minidns.source.DNSDataSource;
import org.minidns.dnsmessage.DnsMessage;
import org.minidns.source.DnsDataSource;

public class AsyncNetworkDataSource extends DNSDataSource {
public class AsyncNetworkDataSource extends DnsDataSource {

protected static final Logger LOGGER = Logger.getLogger(AsyncNetworkDataSource.class.getName());

@@ -81,7 +81,7 @@ public int compare(AsyncDnsRequest o1, AsyncDnsRequest o2) {
}

@Override
public MiniDnsFuture<DNSMessage, IOException> queryAsync(DNSMessage message, InetAddress address, int port, OnResponseCallback onResponseCallback) {
public MiniDnsFuture<DnsMessage, IOException> queryAsync(DnsMessage message, InetAddress address, int port, OnResponseCallback onResponseCallback) {
AsyncDnsRequest asyncDnsRequest = new AsyncDnsRequest(message, address, port, udpPayloadSize, this, onResponseCallback);
INCOMING_REQUESTS.add(asyncDnsRequest);
synchronized (DEADLINE_QUEUE) {
@@ -92,8 +92,8 @@ public int compare(AsyncDnsRequest o1, AsyncDnsRequest o2) {
}

@Override
public DNSMessage query(DNSMessage message, InetAddress address, int port) throws IOException {
MiniDnsFuture<DNSMessage, IOException> future = queryAsync(message, address, port, null);
public DnsMessage query(DnsMessage message, InetAddress address, int port) throws IOException {
MiniDnsFuture<DnsMessage, IOException> future = queryAsync(message, address, port, null);
try {
return future.get();
} catch (InterruptedException e) {
Oops, something went wrong.

0 comments on commit 8445f5f

Please sign in to comment.