- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for setComments (0.08 sec)
-
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java
p1.update(p2); assertEquals(2, (Object) p1.size()); Object o23 = p1.getComments("trees"); assertEquals(List.of("#", "# List of trees", "#"), o23); Object o22 = p1.getProperty("trees"); assertEquals("fir, oak, maple", o22); Object o21 = p1.getComments("fruits"); assertEquals(List.of("#", "# List of good fruits", "#"), o21);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.4K bytes - Viewed (0) -
src/archive/zip/writer_test.go
for _, test := range tests { // write a zip file buf := new(bytes.Buffer) w := NewWriter(buf) if err := w.SetComment(test.comment); err != nil { if test.ok { t.Fatalf("SetComment: unexpected error %v", err) } continue } else { if !test.ok { t.Fatalf("SetComment: unexpected success, want error") } } if err := w.Close(); test.ok == (err != nil) { t.Fatal(err) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38.2K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorReaderDelegate.java
properties.put("license." + i + ".name", license.getName()); properties.put("license." + i + ".url", license.getUrl()); properties.put("license." + i + ".comments", license.getComments()); properties.put("license." + i + ".distribution", license.getDistribution()); } result.setProperties(properties); setArtifactProperties(result, model); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.1K bytes - Viewed (0) -
src/archive/zip/writer.go
// Calling Flush is not normally necessary; calling Close is sufficient. func (w *Writer) Flush() error { return w.cw.w.(*bufio.Writer).Flush() } // SetComment sets the end-of-central-directory comment field. // It can only be called before [Writer.Close]. func (w *Writer) SetComment(comment string) error { if len(comment) > uint16max { return errors.New("zip: Writer.Comment too long") } w.comment = comment return nil }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 19.4K bytes - Viewed (0) -
api/go1.10.txt
pkg archive/tar, type Format int pkg archive/tar, type Header struct, Format Format pkg archive/tar, type Header struct, PAXRecords map[string]string pkg archive/zip, method (*Writer) SetComment(string) error pkg archive/zip, type FileHeader struct, Modified time.Time pkg archive/zip, type FileHeader struct, NonUTF8 bool pkg bufio, method (*Reader) Size() int pkg bufio, method (*Writer) Size() int
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Feb 06 05:00:01 UTC 2018 - 30.1K bytes - Viewed (0)