Skip to content

Commit c231365

Browse files
authored
Merge pull request #163 from leonardortlima/add-file-jvm-name
Add @file:JvmName to utility files
2 parents 98620d2 + fadd9c1 commit c231365

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

generators/server/templates/src/main/kotlin/package/config/DefaultProfileUtil.kt.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
See the License for the specific language governing permissions and
1717
limitations under the License.
1818
-%>
19+
@file:JvmName("DefaultProfileUtil")
20+
1921
package <%=packageName%>.config
2022

2123
import io.github.jhipster.config.JHipsterConstants

generators/server/templates/src/main/kotlin/package/security/SecurityUtils.kt.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
See the License for the specific language governing permissions and
1717
limitations under the License.
1818
-%>
19+
@file:JvmName("SecurityUtils")
20+
1921
package <%=packageName%>.security
2022

2123
<%_ if (reactive) { _%>

generators/server/templates/src/main/kotlin/package/service/util/RandomUtil.kt.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
See the License for the specific language governing permissions and
1717
limitations under the License.
1818
-%>
19+
@file:JvmName("RandomUtil")
20+
1921
package <%=packageName%>.service.util
2022

2123
import org.apache.commons.lang3.RandomStringUtils

generators/server/templates/src/test/kotlin/package/web/rest/TestUtil.kt.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
See the License for the specific language governing permissions and
1717
limitations under the License.
1818
-%>
19+
@file:JvmName("TestUtil")
20+
1921
package <%=packageName%>.web.rest
2022

2123
import com.fasterxml.jackson.annotation.JsonInclude

0 commit comments

Comments
 (0)