You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Avoid instantiating arbitrary classes ([#758](/../../pull/758)) thanks to [@vlsi](https://github.com/vlsi) for the report and [@raboof](https://github.com/raboof) for the patch
Copy file name to clipboardExpand all lines: config/src/main/java/com/typesafe/config/package.html
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
<p>
17
17
Typically you would load configuration with a static method from {@link com.typesafe.config.ConfigFactory} and then use
18
18
it with methods in the {@link com.typesafe.config.Config} interface. Configuration may be in the form of JSON files,
19
-
Java properties, or <ahref="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON files</a>; you may also
19
+
Java properties, or <ahref="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON files</a>; you may also
20
20
build your own configuration in code or from your own file formats.
21
21
</p>
22
22
@@ -26,8 +26,8 @@
26
26
If you use the default configuration from {@link com.typesafe.config.ConfigFactory#load()}
27
27
there's no need to pass a configuration to your libraries
28
28
and frameworks, as long as they all default to this same default, which they should.
29
-
<br/><strong>Example application code:</strong><ahref="https://github.com/lightbend/config/tree/master/examples/java/simple-app/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/master/examples/scala/simple-app/src/main">Scala</a>.
30
-
<br/>Showing a couple of more special-purpose features, <strong>a more complex example:</strong><ahref="https://github.com/lightbend/config/tree/master/examples/java/complex-app/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/master/examples/scala/complex-app/src/main">Scala</a>.
29
+
<br/><strong>Example application code:</strong><ahref="https://github.com/lightbend/config/tree/main/examples/java/simple-app/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/main/examples/scala/simple-app/src/main">Scala</a>.
30
+
<br/>Showing a couple of more special-purpose features, <strong>a more complex example:</strong><ahref="https://github.com/lightbend/config/tree/main/examples/java/complex-app/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/main/examples/scala/complex-app/src/main">Scala</a>.
to get the default one. Typically a library might offer two constructors, one with a <code>Config</code> parameter
38
38
and one which uses {@link com.typesafe.config.ConfigFactory#load()}.
39
-
<br/><strong>Example library code:</strong><ahref="https://github.com/lightbend/config/tree/master/examples/java/simple-lib/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/master/examples/scala/simple-lib/src/main">Scala</a>.
39
+
<br/><strong>Example library code:</strong><ahref="https://github.com/lightbend/config/tree/main/examples/java/simple-lib/src/main">Java</a> and <ahref="https://github.com/lightbend/config/tree/main/examples/scala/simple-lib/src/main">Scala</a>.
40
40
</p>
41
41
42
42
<p>
43
-
Check out the full <ahref="https://github.com/lightbend/config/tree/master/examples">examples directory on GitHub</a>.
43
+
Check out the full <ahref="https://github.com/lightbend/config/tree/main/examples">examples directory on GitHub</a>.
44
44
</p>
45
45
46
46
<p>
47
47
What else to read:
48
48
<ul>
49
49
<li>The overview documentation for interface {@link com.typesafe.config.Config}.</li>
50
-
<li>The <ahref="https://github.com/lightbend/config/blob/master/README.md">README</a> for the library.</li>
50
+
<li>The <ahref="https://github.com/lightbend/config/blob/main/README.md">README</a> for the library.</li>
51
51
<li>If you want to use <code>.conf</code> files in addition to <code>.json</code> and <code>.properties</code>,
52
-
see the <ahref="https://github.com/lightbend/config/blob/master/README.md">README</a> for some short examples
53
-
and the full <ahref="https://github.com/lightbend/config/blob/master/HOCON.md">HOCON spec</a> for the long version.</li>
52
+
see the <ahref="https://github.com/lightbend/config/blob/main/README.md">README</a> for some short examples
53
+
and the full <ahref="https://github.com/lightbend/config/blob/main/HOCON.md">HOCON spec</a> for the long version.</li>
0 commit comments