Skip to content

Commit 2af1848

Browse files
committed
[generator] Warn if type name matches enclosing namespace name.
1 parent fe60483 commit 2af1848

File tree

20 files changed

+200
-4
lines changed

20 files changed

+200
-4
lines changed

src/Java.Interop.Localization/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Java.Interop.Localization/Resources.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ In this message, the term "constants" refers to class or interface members that
201201
{1} - .NET field name.
202202
{2} - Java type.</comment>
203203
</data>
204+
<data name="Generator_BG8403" xml:space="preserve">
205+
<value>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</value>
206+
<comment>{0} - Java type.</comment>
207+
</data>
204208
<data name="Generator_BG8500" xml:space="preserve">
205209
<value>Unexpected child element of '&lt;interface&gt;': '{0}'.</value>
206210
<comment>{0} - XML element name.

src/Java.Interop.Localization/xlf/Resources.cs.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.de.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.es.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.fr.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.it.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.ja.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.ko.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

src/Java.Interop.Localization/xlf/Resources.pl.xlf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ In this message, the term "constants" refers to class or interface members that
104104
{1} - .NET field name.
105105
{2} - Java type.</note>
106106
</trans-unit>
107+
<trans-unit id="Generator_BG8403">
108+
<source>Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</source>
109+
<target state="new">Type '{0}' has a type name which matches the enclosing namespace name. See https://aka.ms/BG8403 for more information.</target>
110+
<note>{0} - Java type.</note>
111+
</trans-unit>
107112
<trans-unit id="Generator_BG8500">
108113
<source>Unexpected child element of '&lt;interface&gt;': '{0}'.</source>
109114
<target state="new">Unexpected child element of '&lt;interface&gt;': '{0}'.</target>

0 commit comments

Comments
 (0)