GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bean name generator should take account of the ending dot of search path · astamuse/asta4d@0f4d833

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • asta4d-spring/src/main/java/com/astamuse/asta4d/misc/spring
    • Asta4dBeanNameGenerator.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎asta4d-spring/src/main/java/com/astamuse/asta4d/misc/spring/Asta4dBeanNameGenerator.java‎

Copy file name to clipboardExpand all lines: asta4d-spring/src/main/java/com/astamuse/asta4d/misc/spring/Asta4dBeanNameGenerator.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.astamuse.asta4d.misc.spring;
22

3+
import java.util.Arrays;
4+
35
import org.springframework.beans.factory.config.BeanDefinition;
46
import org.springframework.context.annotation.AnnotationBeanNameGenerator;
57

@@ -22,7 +24,7 @@ protected String buildDefaultBeanName(BeanDefinition definition) {
2224
}
2325

2426
public void setSnippetSearchPathList(String... snippetSearchPathList) {
25-
this.snippetSearchPathList = snippetSearchPathList.clone();
27+
this.snippetSearchPathList = Arrays.stream(snippetSearchPathList).map(s -> s + ".").toArray(len -> new String[len]);
2628
}
2729

2830
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.